diff --git a/oneoffs/os-version.yml b/oneoffs/os-version.yml new file mode 100755 index 0000000..f94b9d6 --- /dev/null +++ b/oneoffs/os-version.yml @@ -0,0 +1,11 @@ +#!/usr/bin/env ansible-playbook +# vim:ft=ansible: +- hosts: all + gather_facts: yes + become: no + tasks: + - name: print os info + debug: msg="{{ item }}" + with_items: + - "{{ ansible_distribution }}" + - "{{ ansible_distribution_version }}"