-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Frederick Witty <[email protected]>
- Loading branch information
1 parent
4828902
commit ec047d3
Showing
5 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
|
||
- name: "HIGH | WN22-DC-000290 | AUDIT | Windows Server 2022 domain Controller PKI certificates must be issued by the DoD PKI or an approved External Certificate Authority (ECA)." | ||
block: | ||
- name: "HIGH | WN22-DC-000290 | AUDIT | Windows Server 2022 domain Controller PKI certificates must be issued by the DoD PKI or an approved External Certificate Authority (ECA). | Message out" | ||
ansible.builtin.debug: | ||
msg: "Warning!! This is a manual task. Windows Server 2022 domain Controller PKI certificates must be issued by the DoD PKI or an approved External Certificate Authority (ECA)." | ||
|
||
- name: "HIGH | WN22-DC-000290 | AUDIT | Windows Server 2022 domain Controller PKI certificates must be issued by the DoD PKI or an approved External Certificate Authority (ECA). | import reuseable task." | ||
ansible.builtin.import_tasks: warning_facts.yml | ||
vars: | ||
warn_control_id: 'WN22-DC-000290' | ||
when: | ||
- wn19_dc_000290 | ||
- ansible_windows_domain_role == "Primary domain controller" | ||
tags: | ||
- WN22-DC-000290 | ||
- V-254413 | ||
- CAT1 | ||
- SRG-OS-000066-GPOS-00034 | ||
- SV-254413r849055_rule | ||
- CCI-000185 | ||
- high | ||
|
||
# add some task/external variable for approved CAs, check for DoD and how to pull programatically | ||
- name: "HIGH | WN22-DC-000300 | AUDIT | Windows Server 2022 PKI certificates associated with user accounts must be issued by a DoD PKI or an approved External Certificate Authority (ECA)." | ||
block: | ||
- name: "HIGH | WN22-DC-000300 | AUDIT | Windows Server 2022 PKI certificates associated with user accounts must be issued by a DoD PKI or an approved External Certificate Authority (ECA). | Message out" | ||
ansible.builtin.debug: | ||
msg: "Warning!! This is a manual task. Windows Server 2022 PKI certificates associated with user accounts must be issued by a DoD PKI or an approved External Certificate Authority (ECA)." | ||
|
||
- name: "HIGH | WN22-DC-000300 | AUDIT | Windows Server 2022 PKI certificates associated with user accounts must be issued by a DoD PKI or an approved External Certificate Authority (ECA). | import reuseable task." | ||
ansible.builtin.import_tasks: warning_facts.yml | ||
vars: | ||
warn_control_id: 'WN22-DC-000300' | ||
when: | ||
- wn19_dc_000300 | ||
- ansible_windows_domain_role == "Primary domain controller" | ||
tags: | ||
- WN22-DC-000300 | ||
- V-254414 | ||
- SRG-OS-000066-GPOS-00034 | ||
- SV-254414r849058_rule | ||
- CCI-000185 | ||
- high | ||
- CAT1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
|
||
# This task is used to create variables used in giving a warning summary for manual tasks | ||
# that need attention | ||
# | ||
# The warn_control_list and warn_count vars start life in vars/main.yml but get updated | ||
# as the tasks that have a warning complete | ||
# | ||
# Those two variables are used in the tasks/main.yml to display a list of warnings | ||
# | ||
# warn_control_id is set within the task itself and has the control ID as the value | ||
# | ||
# warn_control_list is the main variable to be used and is a list made up of the warn_control_id's | ||
# | ||
# warn_count the main variable for the number of warnings and each time a warn_control_id is added | ||
# the count increases by a value of 1 | ||
|
||
- name: "NO CONTROL ID | AUDIT | Set Fact for Manual Task Warning" | ||
ansible.builtin.set_fact: | ||
warn_control_list: "{{ warn_control_list }} [{{ warn_control_id }}]" | ||
warn_count: "{{ warn_count | int + 1 }}" |