11 lines
369 B
YAML
11 lines
369 B
YAML
---
|
|
- name: Obtener la versión del sistema operativo
|
|
hosts: "{{ host }}"
|
|
gather_facts: yes
|
|
|
|
tasks:
|
|
- name: Mostrar la versión de Debian
|
|
when: ansible_distribution == 'Debian'
|
|
debug:
|
|
msg: "El sistema operativo en {{ inventory_hostname }} es {{ ansible_facts['ansible_distribution'] }} {{ ansible_facts['ansible_distribution_version'] }}"
|