|
|
@ -22,6 +22,7 @@ __metaclass__ = type
|
|
|
|
from ansible import constants as C
|
|
|
|
from ansible import constants as C
|
|
|
|
from ansible import context
|
|
|
|
from ansible import context
|
|
|
|
from ansible.errors import AnsibleParserError, AnsibleAssertionError
|
|
|
|
from ansible.errors import AnsibleParserError, AnsibleAssertionError
|
|
|
|
|
|
|
|
from ansible.module_utils._text import to_native
|
|
|
|
from ansible.module_utils.six import string_types
|
|
|
|
from ansible.module_utils.six import string_types
|
|
|
|
from ansible.playbook.attribute import FieldAttribute
|
|
|
|
from ansible.playbook.attribute import FieldAttribute
|
|
|
|
from ansible.playbook.base import Base
|
|
|
|
from ansible.playbook.base import Base
|
|
|
@ -145,7 +146,7 @@ class Play(Base, Taggable, CollectionSearch):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
return load_list_of_blocks(ds=ds, play=self, variable_manager=self._variable_manager, loader=self._loader)
|
|
|
|
return load_list_of_blocks(ds=ds, play=self, variable_manager=self._variable_manager, loader=self._loader)
|
|
|
|
except AssertionError as e:
|
|
|
|
except AssertionError as e:
|
|
|
|
raise AnsibleParserError("A malformed block was encountered while loading tasks", obj=self._ds, orig_exc=e)
|
|
|
|
raise AnsibleParserError("A malformed block was encountered while loading tasks: %s" % to_native(e), obj=self._ds, orig_exc=e)
|
|
|
|
|
|
|
|
|
|
|
|
def _load_pre_tasks(self, attr, ds):
|
|
|
|
def _load_pre_tasks(self, attr, ds):
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|