--- - name: Debug hosts: all tasks: - name: A debug: var: ansible_facts["distribution"] | lower - name: G debug: var: groups["all"]