make aef test more predictable

revert "Disable any_errors_fatal test."
This reverts commit 56189cc312.

fixes #38407

(cherry picked from commit 3c996d0f74)
pull/39086/head
Brian Coca 7 years ago committed by Matt Clay
parent cb5083b679
commit 0d83a0a888

@ -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…
Cancel
Save