11 lines
335 B
YAML
11 lines
335 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_distribution }} {{ ansible_distribution_version }}"
|