Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed results[0] from admx/adml audit #6

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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