--- - name: Host information hosts: all tasks: - name: Print OS distribution and version ansible.builtin.debug: msg: "{{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }} ({{ ansible_facts['distribution_release'] }})"