Skip to content

Commit a982bce

Browse files
authored
Change NGINX config check handler directory (#378)
1 parent de044f7 commit a982bce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ ENHANCEMENTS:
2020

2121
BUG FIXES:
2222

23-
Add `state` parameter to package module in Molecule verification tests.
23+
* Add `state` parameter to package module in Molecule verification tests.
24+
* Change the command directory when running the NGINX configuration check handler to prevent edge case errors when the handler is run from a directory that the NGINX process' user does not have access to.
2425

2526
## 0.19.1 (January 11, 2021)
2627

handlers/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
- name: (Handler) Check NGINX
1717
command: nginx -t
18+
args:
19+
chdir: /etc/nginx/
1820
register: config_check
1921
ignore_errors: yes
2022
check_mode: no

0 commit comments

Comments
 (0)