make aef test more predictable
revert "Disable any_errors_fatal test." This reverts commit56189cc312
. fixes #38407 (cherry picked from commit3c996d0f74
)
This commit is contained in:
parent
cb5083b679
commit
0d83a0a888
2 changed files with 6 additions and 7 deletions
|
@ -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