You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/gathering_facts/prevent_clobbering.yml

9 lines
316 B
YAML

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