--- - hosts: all gather_facts: true become: false tasks: - name: System details debug: "msg={{ item }}" with_items: - "{{ ansible_distribution }}" - "{{ ansible_architecture }}" - "{{ ansible_distribution_version }}" - "{{ ansible_distribution_major_version }}"