mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
347 B
YAML
22 lines
347 B
YAML
9 years ago
|
- hosts: testhost
|
||
|
gather_facts: no
|
||
|
tasks:
|
||
|
- fail:
|
||
|
ignore_errors: yes
|
||
|
register: fail_out
|
||
|
|
||
|
- debug:
|
||
|
msg: fail works ({{ fail_out.failed }})
|
||
|
|
||
|
- assert:
|
||
|
that: false
|
||
|
ignore_errors: yes
|
||
|
register: assert_out
|
||
|
|
||
|
- debug:
|
||
|
msg: assert works ({{ assert_out.failed }})
|
||
|
|
||
|
- fail:
|
||
|
msg: fail actually failed
|
||
|
|