initial commit
This commit is contained in:
8
roles/common/handlers/main.yml
Normal file
8
roles/common/handlers/main.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- name: restart openssh
|
||||
service:
|
||||
name: ssh
|
||||
state: restarted
|
||||
|
||||
- name: reload nginx
|
||||
include_tasks: ../handlers/nginx.yml
|
||||
when: nginx_started is not changed
|
||||
7
roles/common/handlers/nginx.yml
Normal file
7
roles/common/handlers/nginx.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- name: Validate Nginx config
|
||||
command: nginx -t
|
||||
|
||||
- name: Reload Nginx server
|
||||
service:
|
||||
name: nginx
|
||||
state: reloaded
|
||||
Reference in New Issue
Block a user