check.yaml: introduce check playbook with it printing host distro info
This playbook is for checking various host parameters.
This commit is contained in:
parent
e22d29a75c
commit
2a4d3c5415
1 changed files with 7 additions and 0 deletions
7
playbooks/check.yaml
Normal file
7
playbooks/check.yaml
Normal 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'] }})"
|
Loading…
Reference in a new issue