From c7567a98aca9cd331c51b051290610db01e353c3 Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Tue, 3 Feb 2026 08:57:45 +0000 Subject: [PATCH] fixed tags and audit logic Signed-off-by: Mark Bolwell --- tasks/prelim.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/prelim.yml b/tasks/prelim.yml index c415e65..400c88d 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -4,7 +4,9 @@ # List users in order to look up files inside each home directory - name: "PRELIM | Include audit specific variables" - when: run_audit or audit_only or setup_audit + when: + - run_audit or audit_only + - setup_audit tags: - setup_audit - run_audit @@ -12,7 +14,8 @@ file: audit.yml - name: "PRELIM | Include pre-remediation audit tasks" - when: run_audit or audit_only or setup_audit + when: + - run_audit or audit_only tags: run_audit ansible.builtin.import_tasks: pre_remediation_audit.yml @@ -92,6 +95,11 @@ - rhel9cis_rule_1_2_1_1 - ansible_facts.distribution != 'RedHat' - ansible_facts.distribution != 'OracleLinux' + tags: + - level1-server + - level1-workstation + - rule_1.2.1.1 + - gpg ansible.builtin.package: name: "{{ gpg_key_package }}" state: latest