Added new hosts

This commit is contained in:
Guillem Hernandez Sola
2025-06-18 13:33:38 +02:00
parent 3ae10c2e30
commit a8ba62fc74
44 changed files with 700 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#SPDX-License-Identifier: MIT-0
---
# handlers file for apache2
#Notifica a la tarea de reinicio de Apache2 si este archivo cambia
- 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