Run Check NGINX handler in the correct directory in BSD systems (#454)

This commit is contained in:
Alessandro Fael Garcia 2021-10-06 15:23:13 +02:00 committed by GitHub
parent 4197e90ec0
commit 41a5d0d7a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ ENHANCEMENTS:
BUG FIXES:
Always update NGINX dependencies to the latest available version to avoid outdated dependency issues (e.g. outdated CA certificates).
* Always update NGINX dependencies to the latest available version to avoid outdated dependency issues (e.g. outdated CA certificates).
* The Check NGINX handler should now be run in the correct directory in BSD systems.
## 0.21.1 (September 29, 2021)

View File

@ -16,7 +16,7 @@
- name: (Handler) Check NGINX
command: nginx -t
args:
chdir: /etc/nginx/
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
register: config_check
ignore_errors: true
check_mode: false