--- - hosts: all tasks: - name: Ping ping: - name: Print Linux version debug: msg: "{{ ansible_distribution }} {{ ansible_distribution_version }}"