--- - name: "Get ansible_facts.fqdn" hosts: all gather_facts: yes become: true # collections: # - ansible.posix tasks: - name: "get ansible_facts.fqdn" debug: msg: " {{ ansible_facts.fqdn }}"