Fix Include statement detection (starting with Alpine 3.19)

This commit is contained in:
Sven Velt 2024-07-10 11:15:11 +02:00
parent b588509306
commit 37e7623539

View file

@ -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