diff --git a/CHANGELOG.md b/CHANGELOG.md index a1f20a1..08e786d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/handlers/main.yml b/handlers/main.yml index 76a99d9..64ba883 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -15,6 +15,8 @@ - name: (Handler) Check NGINX command: nginx -t + args: + chdir: /etc/nginx/ register: config_check ignore_errors: yes check_mode: no