Debian Codegraph @

lib/ansible/plugins/test/link_exists.yml

raw
1 DOCUMENTATION:
2 name: link_exists
3 author: Ansible Core
4 version_added: "2.5"
5 short_description: does the path exist, no follow
6 description:
7 - Check if the provided path maps to an existing symlink on the controller's filesystem (localhost).
8 - Does not follow symlinks, so it only verifies that the link itself exists.
9 options:
10 _input:
11 description: A path.
12 type: path
13
14 EXAMPLES: |
15 ismyhostsalink: "{{ '/etc/hosts' is link_exists}}"
16 list_of_symlinks: "{{ list_of_paths | select('link_exists') }}"
17
18 RETURN:
19 _value:
20 description: Returns V(True) if the path corresponds to an existing filesystem object on the controller, V(False) if otherwise.
21 type: boolean