Skip to content

Commit

Permalink
Document playbook_dir (ansible#16166)
Browse files Browse the repository at this point in the history
It was added back in 2013, in version 1.3: ansible#4246
  • Loading branch information
mgedmin authored and bcoca committed Jun 7, 2016
1 parent 596b32f commit b479a80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docsite/rst/playbooks_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down

0 comments on commit b479a80

Please sign in to comment.