Change NGINX config check handler directory (#378)

This commit is contained in:
Alessandro Fael Garcia 2021-03-22 18:44:21 +01:00 committed by GitHub
parent de044f7add
commit a982bce14e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,8 @@ ENHANCEMENTS:
BUG FIXES:
Add `state` parameter to package module in Molecule verification tests.
* Add `state` parameter to package module in Molecule verification tests.
* 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.
## 0.19.1 (January 11, 2021)

View File

@ -15,6 +15,8 @@
- name: (Handler) Check NGINX
command: nginx -t
args:
chdir: /etc/nginx/
register: config_check
ignore_errors: yes
check_mode: no