Justify handler orders
Orders of handlers may become relevant and config validation should be executed before restarting the service.
This commit is contained in:
parent
3e0b830f84
commit
1ebbb1de31
|
@ -1,10 +1,10 @@
|
|||
---
|
||||
- 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
|
||||
|
||||
- name: restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
|
Loading…
Reference in New Issue