ansible-infra/playbooks/check.yaml
June 4162564c25
check.yaml: introduce check playbook with it printing host distro info
This playbook is for checking various host parameters.
2024-11-23 00:10:28 +01:00

8 lines
267 B
YAML

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