summaryrefslogtreecommitdiff
path: root/lib/ansible/playbook/included_file.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/playbook/included_file.py')
-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)