vn-ansible/os/os-release.yml

13 lines
572 B
YAML
Raw Normal View History

2023-07-26 17:21:49 +00:00
---
2023-07-26 19:44:34 +00:00
- name: Obtener la versión del sistema operativo
2023-07-27 15:21:17 +00:00
hosts: "{{ hosts_servers }}"
2023-07-26 19:44:34 +00:00
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-27 15:26:47 +00:00
# msg: "El pretty name de {{ ansible_distribution }} {{ ansible_distribution_version }} es {{ ansible_lsb }}" {{ ansible_lsb ['codename'] }}"
2023-07-27 15:29:27 +00:00
msg: "OS is {{ ansible_distribution }} V. {{ ansible_distribution_version }} codename {{ ansible_lsb.codename }}"
2023-07-26 20:01:26 +00:00