Fix Include statement detection (starting with Alpine 3.19)
This commit is contained in:
parent
b588509306
commit
37e7623539
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Check for Include directory
|
- name: Check for Include directory
|
||||||
shell: "awk '/Include/ { print $2; }' /etc/ssh/sshd_config"
|
shell: "awk '/^[^#]*Include/ { print $2; }' /etc/ssh/sshd_config"
|
||||||
changed_when: False
|
changed_when: False
|
||||||
register: ssh_hardening_includedir
|
register: ssh_hardening_includedir
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue