From 92147857d66cd5552e11ef21b40cdcf5445d59b1 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Tue, 26 Sep 2023 19:50:46 -0400 Subject: [PATCH] Fixed Prelim Always Tags Signed-off-by: Stephen Williams --- tasks/cat2.yml | 2 +- tasks/prelim.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks/cat2.yml b/tasks/cat2.yml index 2c5bd11..be50997 100644 --- a/tasks/cat2.yml +++ b/tasks/cat2.yml @@ -977,7 +977,7 @@ - name: | "MEDIUM | WN10-AU-000005 | PATCH | The system must be configured to audit Account Logon - Credential Validation failures." - "MEDIUM | WN10-AU-000010 | PATCH | The system must be configured to audit Account Logon - Credential Validation successes." + "MEDIUM | WN10-AU-000010 | PATCH | The system must be configured to audit Account Logon - Credential Validation successes." community.windows.win_audit_policy_system: subcategory: Credential Validation audit_type: "{{ (wn10_AU_000005 and not wn10_AU_000010) | ternary ('failure', '') }}{{ (wn10_AU_000010 and not wn10_AU_000005) | ternary ('success', '') }}{{ (wn10_AU_000005 and wn10_AU_000010) | ternary ('success, failure', '') }}" diff --git a/tasks/prelim.yml b/tasks/prelim.yml index e1a7844..bdbcd16 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -39,6 +39,8 @@ changed_when: false failed_when: false register: win10_displayversion + tags: + - always - name: "PRELIM | Get OS Build value." ansible.windows.win_reg_stat: @@ -47,6 +49,8 @@ changed_when: false failed_when: false register: win10_currentbuild + tags: + - always - name: "PRELIM | Get Admin Users and Groups" ansible.windows.win_shell: Get-LocalGroupMember -Name 'Administrators'