Justify handler orders

Orders of handlers may become relevant and config validation should be executed before restarting the service.
This commit is contained in:
René Moser 2021-01-01 11:52:49 +01:00 committed by GitHub
parent 3e0b830f84
commit 1ebbb1de31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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