2023-07-26 17:21:49 +00:00
|
|
|
---
|
2023-07-26 19:44:34 +00:00
|
|
|
- name: Obtener la versión del sistema operativo
|
|
|
|
hosts: "{{ host }}"
|
|
|
|
gather_facts: yes
|
|
|
|
|
2023-07-26 17:21:49 +00:00
|
|
|
tasks:
|
2023-07-26 19:44:34 +00:00
|
|
|
- name: Mostrar la versión de Debian
|
|
|
|
debug:
|
2023-07-26 20:01:26 +00:00
|
|
|
#msg: "El sistema operativo en {{ inventory_hostname }} es {{ ansible_distribution }} {{ ansible_distribution_version }}"
|
2023-07-26 20:08:49 +00:00
|
|
|
# msg: "El pretty name de {{ ansible_distribution }} {{ ansible_distribution_version }} es {{ ansible_lsb }}"
|
2023-07-26 20:22:40 +00:00
|
|
|
msg: "OS is {{ ansible_distribution }} version {{ ansible_distribution_version }} codename {{ ansible_lsb ['codename'] }}"
|
2023-07-26 20:01:26 +00:00
|
|
|
|