summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2016-06-07 16:13:06 +0300
committerBrian Coca <bcoca@ansible.com>2016-06-07 09:13:06 -0400
commitb479a80d452437e467228f36ad10f49fa36781f4 (patch)
tree298f027234686c45cae7ca013095398eb2eaad50
parent596b32f31e1ef48103ff7552195a423cf3529f77 (diff)
downloadansible-b479a80d452437e467228f36ad10f49fa36781f4.tar.gz
Document playbook_dir (#16166)
It was added back in 2013, in version 1.3: https://github.com/ansible/ansible/issues/4246
-rw-r--r--docsite/rst/playbooks_variables.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docsite/rst/playbooks_variables.rst b/docsite/rst/playbooks_variables.rst
index 33cd065204..de74182b45 100644
--- a/docsite/rst/playbooks_variables.rst
+++ b/docsite/rst/playbooks_variables.rst
@@ -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.
+``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.
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``.