File: nosetfacts.yml

package info (click to toggle)
ansible-core 2.19.0~beta6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 32,628 kB
  • sloc: python: 180,313; cs: 4,929; sh: 4,601; xml: 34; makefile: 21
file content (21 lines) | stat: -rw-r--r-- 530 bytes parent folder | download | duplicates (5)
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