mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
Add SSH Variables the proper way, condition entries correct.
Signed-off-by: root@DERVISHx <nuno.carvalho@siemens.com>
This commit is contained in:
parent
5ab4a1c0ed
commit
e4e0b9d0a3
2 changed files with 2 additions and 2 deletions
|
|
@ -278,7 +278,7 @@
|
||||||
- name: "5.2.15 | PATCH | Ensure SSH warning banner is configured"
|
- name: "5.2.15 | PATCH | Ensure SSH warning banner is configured"
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: "{{ rhel9_cis_sshd_config_file }}"
|
path: "{{ rhel9_cis_sshd_config_file }}"
|
||||||
regexp: '^Banner'
|
regexp: '^#Banner|^Banner'
|
||||||
line: 'Banner /etc/issue.net'
|
line: 'Banner /etc/issue.net'
|
||||||
when:
|
when:
|
||||||
- rhel9cis_rule_5_2_15
|
- rhel9cis_rule_5_2_15
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ rhel9cis_sshd:
|
||||||
clientaliveinterval: 900
|
clientaliveinterval: 900
|
||||||
logingracetime: 60
|
logingracetime: 60
|
||||||
# allowusers:
|
# allowusers:
|
||||||
allowgroups: root sshd wheel
|
allowgroups: sshd wheel
|
||||||
# denyusers:
|
# denyusers:
|
||||||
# denygroups:
|
# denygroups:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue