ansible/oneoffs/os-version.yml

9 lines
239 B
YAML
Executable File

#!/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 }}"