More documentation
This commit is contained in:
15
training/handler-nginx.yml
Normal file
15
training/handler-nginx.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
- name: Prueba de handlers
|
||||
hosts: webserver
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Copiar archivo de configuración
|
||||
copy:
|
||||
src: nginx.conf
|
||||
dest: /etc/nginx/nginx.conf
|
||||
notify:
|
||||
- Reiniciar Nginx
|
||||
handlers:
|
||||
- name: Reiniciar Nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user