Debian Codegraph @

lib/ansible/plugins/test/is_link.yml

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