Merge branch 'siemens/feat/ensure_SSH_access_is_limited_5_2_4' into 'siemens/rhel9/devel'

Fix sintax Error on cis_5.2.x.yml

See merge request infosec-pss-gov/security-crafter-baseline-automations/ansible-lockdown/rhel9-cis!4
This commit is contained in:
Nuno Carvalho 2023-10-17 14:13:16 +02:00
commit fa0b19cc5c

View file

@ -91,7 +91,7 @@
line: "AllowGroups {{ rhel9cis_sshd['allowgroups'] }}"
validate: sshd -t -f %s
notify: Restart sshd
when: "rhel9cis_sshd['allowgroups']|default('') | length > 0"
when: "rhel9cis_sshd['allowgroups']| default('')| length > 0"
- name: "5.2.4 | PATCH | Ensure SSH access is limited | Add line to sshd_config for denyusers"
ansible.builtin.lineinfile: