check.yaml: introduce check playbook with it printing host distro info

This playbook is for checking various host parameters.
This commit is contained in:
June 2024-11-23 00:10:28 +01:00
parent e6d6d9eed0
commit dc0017c79a
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

7
playbooks/check.yaml Normal file
View file

@ -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'] }})"