From 36e2e73d236a075869f2c383fc052f5062e32b20 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Sun, 4 Jun 2023 19:55:10 -0500 Subject: [PATCH] Add some oneoff scripts --- oneoffs/os-version.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 oneoffs/os-version.yml 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 }}"