Debian Codegraph @

test/integration/targets/gathering/smart.yml

raw
1 - hosts: testhost
2 tasks:
3 - name: ensure facts are gathered but no local exists
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 latter test
9 copy:
10 src: uuid.fact
11 dest: /etc/ansible/facts.d/
12 mode: 0755
13
14 - hosts: testhost
15 tasks:
16 - name: ensure we still have facts, but didn't pickup new local ones
17 assert:
18 that:
19 - ansible_facts is defined and 'fqdn' in ansible_facts
20 - not 'uuid' in ansible_local
21
22 - name: remove local facts file
23 file: path=/etc/ansible/facts.d/uuid.fact state=absent