2016-03-10 02:36:39 +01:00
|
|
|
- hosts: testhost
|
|
|
|
gather_facts: no
|
2016-03-10 16:49:44 +01:00
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
tasks:
|
2016-03-10 02:36:39 +01: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 16:49:44 +01:00
|
|
|
msg: assert works ({{ assert_out.failed }})
|
2016-03-10 02:36:39 +01:00
|
|
|
|
|
|
|
- fail:
|
|
|
|
msg: fail actually failed
|
|
|
|
|