summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/debug/nosetfacts.yml
blob: 231c60e4915abc1811802f053fc4467000b0ccd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
- name: check we dont set facts with debug ansible_facts https://github.com/ansible/ansible/issues/74060
  hosts: localhost
  gather_facts: false
  tasks:
  - name: create namespaced non fact
    set_fact:
        ansible_facts:
            nonfact: 1

  - name: ensure nonfact does not exist
    assert:
      that:
        - nonfact is not defined

  - name: debug ansible_facts to create issue
    debug: var=ansible_facts

  - name: ensure nonfact STILL does not exist
    assert:
      that:
        - nonfact is not defined