Add SSH Variables the proper way, condition entries correct.

Signed-off-by: root@DERVISHx <nuno.carvalho@siemens.com>
This commit is contained in:
root@DERVISHx 2023-10-17 15:08:11 +01:00
parent e4e0b9d0a3
commit 2dadff76dc
No known key found for this signature in database
GPG key ID: C68B144D8E6CCC46
2 changed files with 4 additions and 2 deletions

View file

@ -278,7 +278,7 @@
- name: "5.2.15 | PATCH | Ensure SSH warning banner is configured"
ansible.builtin.lineinfile:
path: "{{ rhel9_cis_sshd_config_file }}"
regexp: '^#Banner|^Banner'
regexp: "^#Banner|^Banner"
line: 'Banner /etc/issue.net'
when:
- rhel9cis_rule_5_2_15

View file

@ -4,7 +4,9 @@
os_gpg_key_pubkey_name: gpg-pubkey-fd431d51-4ae0493b
os_gpg_key_pubkey_content: "Red Hat, Inc. (release key 2) <security@redhat.com> fd431d51"
# Vars setup for overiding main.yml
rhel9cis_sshd:
n Redhat Stream.
clientalivecountmax: 3
clientaliveinterval: 900
logingracetime: 60