mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
parent
950e067d2f
commit
ee7905c7e1
2 changed files with 7 additions and 1 deletions
|
@ -192,7 +192,7 @@ class Task(Base, Conditional, Taggable, Become):
|
|||
# top level of the task, so we move those into the 'vars' dictionary
|
||||
# here, and show a deprecation message as we will remove this at
|
||||
# some point in the future.
|
||||
if action == 'include' and k not in self._get_base_attributes():
|
||||
if action == 'include' and k not in self._get_base_attributes() and k not in self.DEPRECATED_ATTRIBUTES:
|
||||
self._display.deprecated("Specifying include variables at the top-level of the task is deprecated. Please see:\nhttp://docs.ansible.com/ansible/playbooks_roles.html#task-include-files-and-encouraging-reuse\n\nfor currently supported syntax regarding included files and variables")
|
||||
new_ds['vars'][k] = v
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue