Skip to content

Commit 41a5d0d

Browse files
authored
Run Check NGINX handler in the correct directory in BSD systems (#454)
1 parent 4197e90 commit 41a5d0d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

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

1111
BUG FIXES:
1212

13-
Always update NGINX dependencies to the latest available version to avoid outdated dependency issues (e.g. outdated CA certificates).
13+
* Always update NGINX dependencies to the latest available version to avoid outdated dependency issues (e.g. outdated CA certificates).
14+
* The Check NGINX handler should now be run in the correct directory in BSD systems.
1415

1516
## 0.21.1 (September 29, 2021)
1617

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- name: (Handler) Check NGINX
1717
command: nginx -t
1818
args:
19-
chdir: /etc/nginx/
19+
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
2020
register: config_check
2121
ignore_errors: true
2222
check_mode: false

0 commit comments

Comments
 (0)