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