summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/utilities
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2019-02-11 23:55:51 +0530
committerSandra McCann <samccann@redhat.com>2019-02-11 13:25:51 -0500
commita4e79584ec6af6df7a0e2178fdd3f39618f0fb1c (patch)
treea8eefda7dfb7b5c4ee03cfbe299d6791844f417b /lib/ansible/modules/utilities
parent445ff39f944f45492bf7b2360d99fdadc02d142b (diff)
downloadansible-a4e79584ec6af6df7a0e2178fdd3f39618f0fb1c.tar.gz
include_vars: elaborate description of dir option (#52022)
based on work of thecjharries Additional behavior documentation of 'dir' option in include_vars. Fixes: #31761
Diffstat (limited to 'lib/ansible/modules/utilities')
-rw-r--r--lib/ansible/modules/utilities/logic/include_vars.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/modules/utilities/logic/include_vars.py b/lib/ansible/modules/utilities/logic/include_vars.py
index f81ebc9fda..4f3f4df06f 100644
--- a/lib/ansible/modules/utilities/logic/include_vars.py
+++ b/lib/ansible/modules/utilities/logic/include_vars.py
@@ -34,7 +34,8 @@ options:
version_added: "2.2"
description:
- The directory name from which the variables should be loaded.
- - If the path is relative, it will look for the file in vars/ subdirectory of a role or relative to playbook.
+ - If the path is relative and the task is inside a role, it will look inside the role's vars/ subdirectory.
+ - If the path is relative and not inside a role, it will be parsed relative to the playbook.
name:
version_added: "2.2"
description: