2016-03-09 17:36:39 -08:00
|
|
|
- hosts: testhost
|
|
|
|
gather_facts: no
|
2016-03-10 10:49:44 -05:00
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
tasks:
|
2016-03-09 17:36:39 -08:00
|
|
|
- fail:
|
|
|
|
ignore_errors: yes
|
|
|
|
register: fail_out
|
|
|
|
|
|
|
|
- debug:
|
|
|
|
msg: fail works ({{ fail_out.failed }})
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that: false
|
|
|
|
ignore_errors: yes
|
|
|
|
register: assert_out
|
|
|
|
|
|
|
|
- debug:
|
2016-03-10 10:49:44 -05:00
|
|
|
msg: assert works ({{ assert_out.failed }})
|
2016-03-09 17:36:39 -08:00
|
|
|
|
|
|
|
- fail:
|
|
|
|
msg: fail actually failed
|
|
|
|
|