ansible/test/integration/targets/blocks/finalized_task.yml
Matt Martz 832631b888
Ensure task from the worker is finalized/squashed (#73881)
* Ensure task from the worker is finalized/squashed. Fixes #57399. Fixes #49942
2021-03-16 15:09:43 -04:00

17 lines
433 B
YAML

- hosts: localhost
gather_facts: false
tasks:
- block:
- include_role:
name: '{{ item }}'
loop:
- fail
rescue:
- debug:
msg: "{{ ansible_failed_task.name }}"
- assert:
that:
- ansible_failed_task.name == "Fail"
- ansible_failed_task.action == "fail"
- ansible_failed_task.parent is not defined