mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
make aef test more predictable
revert "Disable any_errors_fatal test."
This reverts commit 56189cc312
.
fixes #38407
This commit is contained in:
parent
56189cc312
commit
3c996d0f74
3 changed files with 7 additions and 7 deletions
|
@ -0,0 +1 @@
|
|||
posix/ci/group3
|
|
@ -1,9 +1,7 @@
|
|||
---
|
||||
# based on https://github.com/ansible/ansible/issues/22924
|
||||
- name: Test any errors fatal
|
||||
hosts: testhost
|
||||
hosts: testhost,testhost2
|
||||
any_errors_fatal: True
|
||||
tasks:
|
||||
- include: test_fatal.yml
|
||||
# tags:
|
||||
# - any_errors_fatal_includes
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
- name: Setting the fact for 'test' to 'test value'
|
||||
set_fact:
|
||||
test: "test value"
|
||||
when: "inventory_hostname == groups.all.0"
|
||||
when: inventory_hostname == 'testhost2'
|
||||
|
||||
- name: EXPECTED FAILURE echo jinja eval of a var that should not exist
|
||||
shell: "echo {{ test }}"
|
||||
- name: EXPECTED FAILURE ejinja eval of a var that should not exist
|
||||
debug: msg="{{ test }}"
|
||||
|
||||
- debug:
|
||||
- name: testhost should never reach here as testhost2 failure above should end play
|
||||
debug:
|
||||
msg: "any_errors_fatal_this_should_never_be_reached"
|
||||
|
|
Loading…
Reference in a new issue