|
|
@ -171,7 +171,11 @@ class Play(Base, Taggable, Become):
|
|
|
|
Bare handlers outside of a block are given an implicit block.
|
|
|
|
Bare handlers outside of a block are given an implicit block.
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
return load_list_of_blocks(ds=ds, play=self, use_handlers=True, variable_manager=self._variable_manager, loader=self._loader)
|
|
|
|
return self._extend_value(
|
|
|
|
|
|
|
|
self.handlers,
|
|
|
|
|
|
|
|
load_list_of_blocks(ds=ds, play=self, use_handlers=True, variable_manager=self._variable_manager, loader=self._loader),
|
|
|
|
|
|
|
|
prepend=True
|
|
|
|
|
|
|
|
)
|
|
|
|
except AssertionError as e:
|
|
|
|
except AssertionError as e:
|
|
|
|
raise AnsibleParserError("A malformed block was encountered while loading handlers", obj=self._ds, orig_exc=e)
|
|
|
|
raise AnsibleParserError("A malformed block was encountered while loading handlers", obj=self._ds, orig_exc=e)
|
|
|
|
|
|
|
|
|
|
|
|