From 2a4d3c5415b9abe9576b688257e4ff2408f34c5f Mon Sep 17 00:00:00 2001 From: June Date: Sat, 23 Nov 2024 00:10:28 +0100 Subject: [PATCH] check.yaml: introduce check playbook with it printing host distro info This playbook is for checking various host parameters. --- playbooks/check.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 playbooks/check.yaml diff --git a/playbooks/check.yaml b/playbooks/check.yaml new file mode 100644 index 0000000..1b019e7 --- /dev/null +++ b/playbooks/check.yaml @@ -0,0 +1,7 @@ +--- +- name: Host information + hosts: all + tasks: + - name: Print OS distribution and version + ansible.builtin.debug: + msg: "{{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }} ({{ ansible_facts['distribution_release'] }})"