- name: Show ansible facts hosts: "{{ hosts | default('all') }}" gather_facts: true tasks: - debug: var: ansible_facts