summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2018-04-30 14:41:13 -0500
committerGitHub <noreply@github.com>2018-04-30 14:41:13 -0500
commit240b060c02ee08fc6914a50398bb52e2b36b722c (patch)
treee2fadfceb682217d602cb4a4156c519779672d6d /lib/ansible/playbook
parent5f9b7046ed2a43a172d53e5724e4b4aaf123b023 (diff)
downloadansible-240b060c02ee08fc6914a50398bb52e2b36b722c.tar.gz
Use the computed role name instead of 'role'. Fixes #38838 (#39516)
Diffstat (limited to 'lib/ansible/playbook')
-rw-r--r--lib/ansible/playbook/included_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/playbook/included_file.py b/lib/ansible/playbook/included_file.py
index e0e09373ca..a2261fb39e 100644
--- a/lib/ansible/playbook/included_file.py
+++ b/lib/ansible/playbook/included_file.py
@@ -160,7 +160,7 @@ class IncludedFile:
from_key = from_arg.replace('_from', '')
new_task._from_files[from_key] = templar.template(include_variables[from_arg])
- inc_file = IncludedFile("role", include_variables, new_task, is_role=True)
+ inc_file = IncludedFile(role_name, include_variables, new_task, is_role=True)
try:
pos = included_files.index(inc_file)