Debian Codegraph @

lib/ansible/plugins/test/abs.yml

raw
1 DOCUMENTATION:
2 name: abs
3 author: Ansible Core
4 version_added: "2.5"
5 short_description: is the path absolute
6 aliases: [is_abs]
7 description:
8 - Check if the provided path is absolute, not relative.
9 - An absolute path expresses the location of a filesystem object starting at the filesystem root and requires no context.
10 - A relative path does not start at the filesystem root and requires a 'current' directory as a context to resolve.
11 options:
12 _input:
13 description: A path.
14 type: path
15
16 EXAMPLES: |
17 is_path_absolute: "{{ '/etc/hosts' is abs }}}"
18 relative_paths: "{{ all_paths | reject('abs') }}"
19
20 RETURN:
21 _value:
22 description: Returns V(True) if the path is absolute, V(False) if it is relative.
23 type: boolean