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
e6d6d9eed0
commit
dc0017c79a
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