additional course material RH294
Olaf Bohlen
2020-08-20 1de6236f80a879ca110981fe0e5c0c05c521225b
1
2
3
4
5
6
7
8
9
10
---
- name: empty facts
  hosts: servera
  become: false
  gather_facts: true
  tasks:
    - name: print facts
      debug:
        var: ansible_facts['fqdn']
      when: ansible_facts['fqdn'] is defined