Skip to content

Commit

Permalink
removed results[0] from admx/adml audit
Browse files Browse the repository at this point in the history
  • Loading branch information
smaug9 committed Jan 3, 2024
1 parent 13ffedd commit 8616363
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tasks/cat2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1110,23 +1110,23 @@
- "Warning!! SecGuide.admx is not installed in C:\\Windows\\PolicyDefinitions folder."
- "This policy setting requires the installation of the SecGuide.admx custom templates"
- "included with the STIG package."
when: wn22_secguide_admx_audit.results[0].matched != 1
when: wn22_secguide_admx_audit.matched != 1

- name: "MEDIUM | WN22-00-000390 | AUDIT | Windows Server 2022 must have the Server Message Block (SMB) v1 protocol disabled on the SMB server. | Warning Message No SecGuide.adml"
ansible.builtin.debug:
msg:
- "Warning!! SecGuide.adml is not installed in C:\\Windows\\PolicyDefinitions\\en-US folder"
- "This policy setting requires the installation of the SecGuide.adml custom templates"
- "included with the STIG package."
when: wn22_secguide_adml_audit.results[0].matched != 1
when: wn22_secguide_adml_audit.matched != 1

- name: "MEDIUM | WN22-00-000390 | AUDIT | Windows Server 2022 must have the Server Message Block (SMB) v1 protocol disabled on the SMB server. | Warn Count."
ansible.builtin.import_tasks: warning_facts.yml
vars:
warn_control_id: 'WN22-00-000390'
when:
- wn22_secguide_admx_audit.results[0].matched != 1 or
wn22_secguide_adml_audit.results[0].matched != 1
- wn22_secguide_admx_audit.matched != 1 or
wn22_secguide_adml_audit.matched != 1
when:
- wn22_00_000390
tags:
Expand Down Expand Up @@ -1154,23 +1154,23 @@
- "Warning!! SecGuide.admx is not installed in C:\\Windows\\PolicyDefinitions folder."
- "This policy setting requires the installation of the SecGuide.admx custom templates"
- "included with the STIG package."
when: wn22_secguide_admx_audit.results[0].matched != 1
when: wn22_secguide_admx_audit.matched != 1

- name: "MEDIUM | WN22-00-000400 | AUDIT | Windows Server 2022 must have the Server Message Block (SMB) v1 protocol disabled on the SMB server - mrxsmb10 | Warning Message No SecGuide.adml"
ansible.builtin.debug:
msg:
- "Warning!! SecGuide.adml is not installed in C:\\Windows\\PolicyDefinitions\\en-US folder"
- "This policy setting requires the installation of the SecGuide.adml custom templates"
- "included with the STIG package."
when: wn22_secguide_adml_audit.results[0].matched != 1
when: wn22_secguide_adml_audit.matched != 1

- name: "MEDIUM | WN22-00-000400 | AUDIT | Windows Server 2022 must have the Server Message Block (SMB) v1 protocol disabled on the SMB server - mrxsmb10 | Warn Count."
ansible.builtin.import_tasks: warning_facts.yml
vars:
warn_control_id: 'WN22-00-000400'
when:
- wn22_secguide_admx_audit.results[0].matched != 1 or
wn22_secguide_adml_audit.results[0].matched != 1
- wn22_secguide_admx_audit.matched != 1 or
wn22_secguide_adml_audit.matched != 1
when:
- wn22_00_000400
tags:
Expand Down

0 comments on commit 8616363

Please sign in to comment.