7 lines
267 B
YAML
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'] }})"
|