From c746b668d30b69de35731a086ac02a72b01493e9 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Tue, 18 Oct 2022 12:05:56 +0200 Subject: [PATCH] playbook to fetch ansible distribution --- get_distribution.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 get_distribution.yml diff --git a/get_distribution.yml b/get_distribution.yml new file mode 100644 index 0000000..f3fef20 --- /dev/null +++ b/get_distribution.yml @@ -0,0 +1,12 @@ +--- +- hosts: + - pikvm + gather_facts: true + become: false + tasks: + - name: System details + debug: "msg={{ item }}" + with_items: + - "{{ ansible_distribution }}" + - "{{ ansible_distribution_version }}" + - "{{ ansible_distribution_major_version }}"