#!/usr/bin/env ansible-playbook # vim:ft=ansible: - hosts: all gather_facts: yes become: no tasks: - name: print os info debug: msg="{{ inventory_hostname }} - {{ ansible_distribution }} {{ ansible_distribution_version }}"