|
---
|
|
- name: Obtener la versión del sistema operativo
|
|
hosts: "{{ hosts_servers }}"
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
- name: Mostrar la versión de Debian
|
|
debug:
|
|
msg: "OS is {{ ansible_distribution }} V. {{ ansible_distribution_version }} , {{ ansible_lsb.codename }}"
|
|
|