main.yaml
338 Bytes
---
- name: Obtener información del sistema operativo
hosts: all
gather_facts: yes
become: no
tasks:
- name: Mostrar versión del sistema operativo
debug:
msg: "El host {{ inventory_hostname }} tiene el sistema {{ ansible_distribution }} {{ ansible_distribution_version }} ({{ ansible_distribution_release }})"