2018-01-29 20:47:13 +00:00
|
|
|
---
|
|
|
|
- name: Setting the fact for 'test' to 'test value'
|
|
|
|
set_fact:
|
|
|
|
test: "test value"
|
2018-04-06 15:19:25 +00:00
|
|
|
when: inventory_hostname == 'testhost2'
|
2018-01-29 20:47:13 +00:00
|
|
|
|
2018-04-06 15:19:25 +00:00
|
|
|
- name: EXPECTED FAILURE ejinja eval of a var that should not exist
|
|
|
|
debug: msg="{{ test }}"
|
2018-01-29 20:47:13 +00:00
|
|
|
|
2018-04-06 15:19:25 +00:00
|
|
|
- name: testhost should never reach here as testhost2 failure above should end play
|
|
|
|
debug:
|
2018-01-29 20:47:13 +00:00
|
|
|
msg: "any_errors_fatal_this_should_never_be_reached"
|