1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Document playbook_dir (#16166)

It was added back in 2013, in version 1.3: https://github.com/ansible/ansible/issues/4246
This commit is contained in:
Marius Gedminas 2016-06-07 16:13:06 +03:00 committed by Brian Coca
parent 596b32f31e
commit b479a80d45

View file

@ -672,6 +672,8 @@ Don't worry about any of this unless you think you need it. You'll know when yo
Also available, ``inventory_dir`` is the pathname of the directory holding Ansible's inventory host file, ``inventory_file`` is the pathname and the filename pointing to the Ansible's inventory host file. Also available, ``inventory_dir`` is the pathname of the directory holding Ansible's inventory host file, ``inventory_file`` is the pathname and the filename pointing to the Ansible's inventory host file.
``playbook_dir`` contains the playbook base directory.
We then have ``role_path`` which will return the current role's pathname (since 1.8). This will only work inside a role. We then have ``role_path`` which will return the current role's pathname (since 1.8). This will only work inside a role.
And finally, ``ansible_check_mode`` (added in version 2.1), a boolean magic variable which will be set to ``True`` if you run Ansible with ``--check``. And finally, ``ansible_check_mode`` (added in version 2.1), a boolean magic variable which will be set to ``True`` if you run Ansible with ``--check``.