Skip to content

is_mount

Collection Note

This module is part of the ansible.builtin collection. To install the collection, use:

ansible-galaxy collection install ansible.builtin
Added in version 2.5.

Synopsis

  • Check if the provided path maps to a filesystem mount point on the controller (localhost).

Parameters

Parameter Defaults / Choices Comments
_input
path
A path.

Examples

vars:
  ihopefalse: "{{ '/etc/hosts' is mount }}"
  normallytrue: "{{ '/tmp' is mount }}"

Return Values

Key Data Type Description Returned
_value boolean Returns V(True) if the path corresponds to a mount point on the controller, V(False) if otherwise.

Authors

  • Ansible Core