Debian Codegraph @

test/integration/targets/gathering/implicit.yml

raw
1 - hosts: testhost
2 tasks:
3 - name: check that facts were gathered but no local facts exist
4 assert:
5 that:
6 - ansible_facts is defined and 'fqdn' in ansible_facts
7 - not 'uuid' in ansible_local
8 - name: create 'local facts' for next gathering
9 copy:
10 src: uuid.fact
11 dest: /etc/ansible/facts.d/
12 mode: 0755
13
14 - hosts: testhost
15 tasks:
16 - name: ensure facts are gathered and includes the new 'local facts' created above
17 assert:
18 that:
19 - ansible_facts is defined and 'fqdn' in ansible_facts
20 - "'uuid' in ansible_local"
21
22 - name: cleanup 'local facts' from target
23 file: path=/etc/ansible/facts.d/uuid.fact state=absent