Swap order of handlers (#332)

This commit is contained in:
Alessandro Fael Garcia 2020-09-24 04:21:15 +02:00 committed by GitHub
parent bedd6ce16f
commit 0c211a3920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 10 deletions

View File

@ -1,5 +1,11 @@
# Changelog
## 0.17.2 (September 24, 2020)
BUG FIXES:
* Fix an issue where sometimes the role handlers will fail in distros where NGINX is not started upon installation.
## 0.17.1 (September 22, 2020)
ENHANCEMENTS:

View File

@ -3,6 +3,16 @@
systemd:
daemon_reload: yes
- name: (Handler) Start/reload NGINX
service:
name: nginx
state: reloaded
enabled: yes
when:
- nginx_start | bool
- not ansible_check_mode | bool
listen: (Handler) Run NGINX
- name: (Handler) Check NGINX
command: nginx -t
register: config
@ -17,16 +27,6 @@
when: config.rc != 0
listen: (Handler) Run NGINX
- name: (Handler) Start/reload NGINX
service:
name: nginx
state: reloaded
enabled: yes
when:
- nginx_start | bool
- not ansible_check_mode | bool
listen: (Handler) Run NGINX
- name: (Handler) Start NGINX Amplify agent
service:
name: amplify-agent