task 1-4
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: validate nginx configuration
|
||||
command: nginx -t -c /etc/nginx/nginx.conf
|
||||
changed_when: false
|
||||
|
||||
- name: reload nginx
|
||||
service: name=nginx state=reloaded
|
||||
when: nginx_service_state == "started"
|
||||
Reference in New Issue
Block a user