Debian Codegraph @

lib/ansible/plugins/test/directory.yml

raw
1 DOCUMENTATION:
2 name: directory
3 author: Ansible Core
4 version_added: "2.5"
5 short_description: does the path resolve to an existing directory
6 description:
7 - Check if the provided path maps to an existing directory on the controller's filesystem (localhost).
8 options:
9 _input:
10 description: A path.
11 type: path
12
13 EXAMPLES: |
14 vars:
15 my_etc_hosts_not_a_dir: "{{ '/etc/hosts' is directory}}"
16 list_of_files: "{{ list_of_paths | reject('directory') }}"
17
18 RETURN:
19 _value:
20 description: Returns V(True) if the path corresponds to an existing directory on the filesystem on the controller, V(False) if otherwise.
21 type: boolean