Training from 20250617

This commit is contained in:
Guillem Hernandez Sola
2025-06-17 13:51:26 +02:00
parent b40e420fbf
commit 5620e1f4dc
14 changed files with 201 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
- name: Reiniciar Nginx
hosts: all
become: yes
tasks:
- name: Reiniciar el servicio Nginx
service:
name: nginx
state: restarted
- name: Verificar el estado del servicio Nginx
service_facts:
- name: Mostrar estado del servicio Nginx
debug:
msg: "El servicio Nginx está {{ ansible_facts.services['nginx.service'].state }}"