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,9 @@
#SPDX-License-Identifier: MIT-0
---
# handlers file for nginx
- name: Reiniciar Nginx
ansible.builtin.service:
name: nginx #Nombre del servicio a reiniciar
state: restarted #Reinicia el servicio
when: ansible_facts.services['nginx.service'].state == 'running' #Solo si el servicio está corriendo
#when: ansible_facts.services['nginx'].state == 'running' #Condición para versiones antiguas