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
433008d211
commit
4162564c25
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