summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/gathering/smart.yml
blob: 735cb461be6600cc64d38581996f180f2e9a6328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- hosts: testhost
  tasks:
    - name: ensure facts are gathered but no local exists
      assert:
        that:
            - ansible_facts is defined and 'fqdn' in ansible_facts
            - not 'uuid' in ansible_local
    - name: create local facts for latter test
      copy:
        src: uuid.fact
        dest: /etc/ansible/facts.d/
        mode: 0755

- hosts: testhost
  tasks:
    - name: ensure we still have facts, but didnt pickup new local ones
      assert:
        that:
            - ansible_facts is defined and 'fqdn' in ansible_facts
            - not 'uuid' in ansible_local

    - name: remove local facts file
      file: path=/etc/ansible/facts.d/uuid.fact state=absent