diff options
Diffstat (limited to 'test/integration/targets/gathering_facts/prevent_clobbering.yml')
-rw-r--r-- | test/integration/targets/gathering_facts/prevent_clobbering.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/targets/gathering_facts/prevent_clobbering.yml b/test/integration/targets/gathering_facts/prevent_clobbering.yml new file mode 100644 index 0000000..94bb451 --- /dev/null +++ b/test/integration/targets/gathering_facts/prevent_clobbering.yml @@ -0,0 +1,8 @@ +- name: Verify existing facts don't go undefined on unrelated new facts in loop + hosts: localhost + gather_facts: True + tasks: + - name: Ensure that 'virtualization_type' is not undefined after first loop iteration + bogus_facts: + loop: [1, 2, 3] + when: ansible_facts['virtualization_type'] != 'NotDocker' |