make aef test more predictable

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

fixes #38407
This commit is contained in:
Brian Coca 2018-04-06 11:19:25 -04:00 committed by Matt Clay
parent 56189cc312
commit 3c996d0f74
3 changed files with 7 additions and 7 deletions

View file

@ -0,0 +1 @@
posix/ci/group3

View file

@ -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

View file

@ -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"