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
e4e0b9d0a3
commit
2dadff76dc
2 changed files with 4 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|^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
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,13 @@
|
||||||
os_gpg_key_pubkey_name: gpg-pubkey-fd431d51-4ae0493b
|
os_gpg_key_pubkey_name: gpg-pubkey-fd431d51-4ae0493b
|
||||||
os_gpg_key_pubkey_content: "Red Hat, Inc. (release key 2) <security@redhat.com> fd431d51"
|
os_gpg_key_pubkey_content: "Red Hat, Inc. (release key 2) <security@redhat.com> fd431d51"
|
||||||
|
|
||||||
|
# Vars setup for overiding main.yml
|
||||||
rhel9cis_sshd:
|
rhel9cis_sshd:
|
||||||
|
n Redhat Stream.
|
||||||
clientalivecountmax: 3
|
clientalivecountmax: 3
|
||||||
clientaliveinterval: 900
|
clientaliveinterval: 900
|
||||||
logingracetime: 60
|
logingracetime: 60
|
||||||
# allowusers:
|
# allowusers:
|
||||||
allowgroups: sshd wheel
|
allowgroups: sshd wheel
|
||||||
# denyusers:
|
# denyusers:
|
||||||
# denygroups:
|
# denygroups:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue