mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
Handle top-level vars for include tasks to match v1 syntax
The "streamlined" syntax will be deprecated at some point in the future. Fixes #11882
This commit is contained in:
parent
7062cb3bb7
commit
5eb092b331
2 changed files with 26 additions and 1 deletions
|
@ -65,6 +65,13 @@ class Base:
|
|||
# and initialize the base attributes
|
||||
self._initialize_base_attributes()
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
self._display = display
|
||||
except ImportError:
|
||||
from ansible.utils.display import Display
|
||||
self._display = Display()
|
||||
|
||||
# The following three functions are used to programatically define data
|
||||
# descriptors (aka properties) for the Attributes of all of the playbook
|
||||
# objects (tasks, blocks, plays, etc).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue