Tweak handlers (#331)
This commit is contained in:
parent
a49765b55e
commit
bedd6ce16f
@ -1,10 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 0.17.1 (Unreleased)
|
## 0.17.1 (September 22, 2020)
|
||||||
|
|
||||||
ENHANCEMENTS:
|
ENHANCEMENTS:
|
||||||
|
|
||||||
* The role will no longer fail automatically on unsupported platforms, but the error message will still be displayed.
|
* The role will no longer fail automatically on unsupported platforms, but the error message will still be displayed.
|
||||||
|
* The `Check NGINX` handler now always outputs an `ok` state instead of `changed` since it's a read-only operation with no traceable changes.
|
||||||
|
|
||||||
## 0.17.0 (September 20, 2020)
|
## 0.17.0 (September 20, 2020)
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
command: nginx -t
|
command: nginx -t
|
||||||
register: config
|
register: config
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
changed_when: false
|
||||||
listen: (Handler) Run NGINX
|
listen: (Handler) Run NGINX
|
||||||
|
|
||||||
- name: (Handler) Print NGINX error if syntax check fails
|
- name: (Handler) Print NGINX error if syntax check fails
|
||||||
@ -16,7 +17,7 @@
|
|||||||
when: config.rc != 0
|
when: config.rc != 0
|
||||||
listen: (Handler) Run NGINX
|
listen: (Handler) Run NGINX
|
||||||
|
|
||||||
- name: (Handler) Start/Reload NGINX
|
- name: (Handler) Start/reload NGINX
|
||||||
service:
|
service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
Loading…
Reference in New Issue
Block a user