From 4942f181007e8ac861d84f8151ee23973f1aa35c Mon Sep 17 00:00:00 2001 From: Gerard Lynch Date: Wed, 24 Jun 2015 16:50:14 +0100 Subject: [PATCH] added role_path to magic var section --- docsite/rst/playbooks_variables.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docsite/rst/playbooks_variables.rst b/docsite/rst/playbooks_variables.rst index 7bf006cf75d..905ef10e2ba 100644 --- a/docsite/rst/playbooks_variables.rst +++ b/docsite/rst/playbooks_variables.rst @@ -614,6 +614,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. +And finally, *role_path* will return the current role's pathname (since 1.8). This will only work inside a role. + .. _variable_file_separation_details: Variable File Separation