mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
a07495e4c8
also fixed test_test_infra to allow tags
23 lines
366 B
YAML
23 lines
366 B
YAML
- hosts: testhost
|
|
gather_facts: no
|
|
tags:
|
|
- always
|
|
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
|
|
|