Added always tag to ensure variable exists on CIS profile tag-based execution

Signed-off-by: defnotyujine <batauling1000@gmail.com>
This commit is contained in:
defnotyujine 2026-03-09 14:55:38 +08:00
parent 497b3dc8d9
commit 83cf830f36
No known key found for this signature in database
GPG key ID: D76FF97B68E000CB

View file

@ -259,6 +259,8 @@
- name: "PRELIM | PATCH | sshd_config.d/50-redhat.conf exists"
when: rhel9cis_rule_5_1_10 or rhel9cis_rule_5_1_11
tags:
- always
ansible.builtin.stat:
path: /etc/ssh/sshd_config.d/50-redhat.conf
register: prelim_sshd_50_redhat_file