vn-ansible/linux/os/os-release.yml

11 lines
286 B
YAML

---
- 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 }}"