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:03:47 +00:00
|
|
|
msg: "El pretty name de {{ ansible_distribution }} {{ ansible_distribution_version }} es {{ ansible_lsb }}"
|
2023-07-26 20:06:52 +00:00
|
|
|
msg: "El pretty name de {{ ansible_distribution }} {{ ansible_distribution_version }} es {{ ansible_distribution }} {{ ansible_distribution_major_version }}"
|
2023-07-26 20:01:26 +00:00
|
|
|
|