Run Check NGINX handler in the correct directory in BSD systems (#454)
This commit is contained in:
parent
4197e90ec0
commit
41a5d0d7a2
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user