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