summaryrefslogtreecommitdiffstats
path: root/lib/ansible/playbook/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/playbook/base.py')
-rw-r--r--lib/ansible/playbook/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py
index 96c3b98..df18ecb 100644
--- a/lib/ansible/playbook/base.py
+++ b/lib/ansible/playbook/base.py
@@ -589,10 +589,11 @@ class FieldAttributeBase:
_validate_variable_keys(ds)
return combine_vars(self.vars, ds)
elif isinstance(ds, list):
+ line_file = getattr(ds, 'ansible_pos', ("unknown", 0))
display.deprecated(
(
'Specifying a list of dictionaries for vars is deprecated in favor of '
- 'specifying a dictionary.'
+ 'specifying a dictionary. Error occurred in the file: %s, line: %d' % (line_file[0], line_file[1])
),
version='2.18'
)