4
0
Fork 0

Check for existence of sshd_config.d/50-redhat.conf before trying to modify it

Signed-off-by: polski-g <polski_g@sent.at>
This commit is contained in:
polski_g 2025-05-08 11:17:29 -04:00 committed by polski-g
parent 9ee1498c98
commit f564135e72
No known key found for this signature in database
GPG key ID: C077F64D3FFD4D39
2 changed files with 10 additions and 0 deletions

View file

@ -246,6 +246,14 @@
mode: 'go-rwx'
state: touch
- name: "PRELIM | PATCH | sshd_config.d/50-redhat.conf exists"
when:
- rhel9cis_rule_5_1_10 or
rhel9cis_rule_5_1_11
ansible.builtin.stat:
path: /etc/ssh/sshd_config.d/50-redhat.conf
register: discovered_sshd_50_redhat_file
- name: "PRELIM | AUDIT | Capture pam security related files"
tags: always
ansible.builtin.find: