Relative Content

Tag Archive for python-3.xansible

How to get tasks whether in block … rescue in ansible callball script?

– name: test start block: – name: test A …. rescue: – name: test N … task A in block and task B in rescue. class CallbackModule(CallbackBase): def v2_playbook_on_task_start(self, task, is_conditional): “` I want to get this task whether in block or rescue “` I think may be can get tasks information from Block class, […]