Tweak handlers (#331)

This commit is contained in:
Alessandro Fael Garcia 2020-09-22 22:03:38 +02:00 committed by GitHub
parent a49765b55e
commit bedd6ce16f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,10 +1,11 @@
# Changelog
## 0.17.1 (Unreleased)
## 0.17.1 (September 22, 2020)
ENHANCEMENTS:
* 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)

View File

@ -7,6 +7,7 @@
command: nginx -t
register: config
ignore_errors: yes
changed_when: false
listen: (Handler) Run NGINX
- name: (Handler) Print NGINX error if syntax check fails
@ -16,7 +17,7 @@
when: config.rc != 0
listen: (Handler) Run NGINX
- name: (Handler) Start/Reload NGINX
- name: (Handler) Start/reload NGINX
service:
name: nginx
state: reloaded