Training from 20250617
This commit is contained in:
9
training/control-flujo.yml
Normal file
9
training/control-flujo.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- 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'
|
||||
Reference in New Issue
Block a user