Swap order of handlers (#332)
This commit is contained in:
parent
bedd6ce16f
commit
0c211a3920
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user