ansible-infra/playbooks/check.yaml
June dc0017c79a
check.yaml: introduce check playbook with it printing host distro info
This playbook is for checking various host parameters.
2024-12-02 00:32:51 +01:00

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