Files
startusingansible/training/control-flujo.yml
Guillem Hernandez Sola 5620e1f4dc Training from 20250617
2025-06-17 13:51:26 +02:00

9 lines
228 B
YAML

- name: Prueba de when
hosts: all
become: yes
tasks:
- name: Instalar Apache2 si el sistema operativo es Debian
apt:
name: apache2
state: present
when: ansible_facts['os_family'] == 'Debian'