ansible/test/integration/targets/infra/test_test_infra.yml
Matt Clay 5a1b59adf9 Rename tests (#68356)
* Rename `tests` test to match plugin type.

* Rename `test_infra` test to avoid confusion.

This test target is not a test for test plugins.

* Rename `vars_prompt` test to avoid confusion.

* Update sanity ignores.
2020-03-23 11:14:21 -05:00

25 lines
551 B
YAML

- hosts: testhost
gather_facts: no
tags:
- always
tasks:
- name: ensure fail action produces a failing result
fail:
ignore_errors: yes
register: fail_out
- debug:
msg: fail works ({{ fail_out.failed }})
- name: ensure assert produces a failing result
assert:
that: false
ignore_errors: yes
register: assert_out
- debug:
msg: assert works ({{ assert_out.failed }})
- name: EXPECTED FAILURE ensure fail action stops execution
fail:
msg: fail actually failed (this is expected)