Skip to content

Commit bedd6ce

Browse files
authored
Tweak handlers (#331)
1 parent a49765b commit bedd6ce

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changelog
22

3-
## 0.17.1 (Unreleased)
3+
## 0.17.1 (September 22, 2020)
44

55
ENHANCEMENTS:
66

77
* The role will no longer fail automatically on unsupported platforms, but the error message will still be displayed.
8+
* The `Check NGINX` handler now always outputs an `ok` state instead of `changed` since it's a read-only operation with no traceable changes.
89

910
## 0.17.0 (September 20, 2020)
1011

handlers/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
command: nginx -t
88
register: config
99
ignore_errors: yes
10+
changed_when: false
1011
listen: (Handler) Run NGINX
1112

1213
- name: (Handler) Print NGINX error if syntax check fails
@@ -16,7 +17,7 @@
1617
when: config.rc != 0
1718
listen: (Handler) Run NGINX
1819

19-
- name: (Handler) Start/Reload NGINX
20+
- name: (Handler) Start/reload NGINX
2021
service:
2122
name: nginx
2223
state: reloaded

0 commit comments

Comments
 (0)