mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
b20ba105c2
* start adding intg tests for any_errors_fatal * updates * show captured output flip conditional for on_includes * cleanup/ci poke * fix typos * Add 'EXPECTED FAILURE' to tasks names for expected failures
21 lines
667 B
YAML
21 lines
667 B
YAML
---
|
|
- hosts: localhost
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- block:
|
|
- debug: msg='i execute normally'
|
|
- name: EXPECTED FAILURE primary block command
|
|
command: /bin/false
|
|
- debug: msg='i never execute, cause ERROR!'
|
|
rescue:
|
|
- name: rescue block debug
|
|
debug: msg='I caught an error'
|
|
- name: EXPECTED FAILURE rescue block command
|
|
command: /bin/false
|
|
- debug: msg='I also never execute :-('
|
|
always:
|
|
- name: A debug task in the always block
|
|
debug: msg="this always executes"
|
|
|
|
- set_fact:
|
|
always_ran: true
|