From 83cf830f36411c23597ef74dd4dbc24a944c161a Mon Sep 17 00:00:00 2001 From: defnotyujine Date: Mon, 9 Mar 2026 14:55:38 +0800 Subject: [PATCH] Added always tag to ensure variable exists on CIS profile tag-based execution Signed-off-by: defnotyujine --- tasks/prelim.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/prelim.yml b/tasks/prelim.yml index 09e36206..91e576d1 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -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