From 6064875b185a5f4d287299cecb138995098f3ae8 Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Wed, 18 Jun 2025 14:23:32 +0200 Subject: [PATCH] Added pagin role 4 --- training/practica-3-jinja2/apache2/handlers/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/training/practica-3-jinja2/apache2/handlers/main.yml b/training/practica-3-jinja2/apache2/handlers/main.yml index 8b9a530..ea6f537 100644 --- a/training/practica-3-jinja2/apache2/handlers/main.yml +++ b/training/practica-3-jinja2/apache2/handlers/main.yml @@ -5,6 +5,4 @@ - name: Reiniciar Apache2 ansible.builtin.service: name: apache2 #Nombre del servicio a reiniciar - state: restarted #Reinicia el servicio - when: ansible_facts.services['apache2.service'].state == 'running' #Solo si el servicio está corriendo - #when: ansible_facts.services['apache2'].state == 'running' #Condición para versiones antiguas \ No newline at end of file + state: restarted #Reinicia el servicio \ No newline at end of file