Debian Codegraph @

lib/ansible/plugins/test/is_same_file.yml

raw
1 DOCUMENTATION:
2 name: same_file
3 author: Ansible Core
4 version_added: "2.5"
5 short_description: compares two paths to see if they resolve to the same filesystem object
6 description: Check if the provided paths map to the same location on the controller's filesystem (localhost).
7 aliases: [is_file]
8 options:
9 _input:
10 description: A path.
11 type: path
12 required: true
13 _path2:
14 description: Another path.
15 type: path
16 required: true
17
18 EXAMPLES: |
19 amionelevelfromroot: "{{ '/etc/hosts' is same_file('../etc/hosts') }}"
20
21 RETURN:
22 _value:
23 description: Returns V(True) if the paths correspond to the same location on the filesystem on the controller, V(False) if otherwise.
24 type: boolean