Swap order of handlers (#332)
This commit is contained in:
parent
bedd6ce16f
commit
0c211a3920
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# 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)
|
## 0.17.1 (September 22, 2020)
|
||||||
|
|
||||||
ENHANCEMENTS:
|
ENHANCEMENTS:
|
||||||
|
@ -3,6 +3,16 @@
|
|||||||
systemd:
|
systemd:
|
||||||
daemon_reload: yes
|
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
|
- name: (Handler) Check NGINX
|
||||||
command: nginx -t
|
command: nginx -t
|
||||||
register: config
|
register: config
|
||||||
@ -17,16 +27,6 @@
|
|||||||
when: config.rc != 0
|
when: config.rc != 0
|
||||||
listen: (Handler) Run NGINX
|
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
|
- name: (Handler) Start NGINX Amplify agent
|
||||||
service:
|
service:
|
||||||
name: amplify-agent
|
name: amplify-agent
|
||||||
|
Loading…
Reference in New Issue
Block a user