Skip to content

Commit

Permalink
Bug fixing for AWS and Server Core
Browse files Browse the repository at this point in the history
Signed-off-by: fortinm <[email protected]>
  • Loading branch information
mfortin committed Jun 8, 2024
1 parent 13ffedd commit cb7ae25
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ win22stig_lengthy_search: false
# different environments. By Default This is set to false.
win22stig_cloud_based_system: false

# This will be changed to true if discovered for server core type.
wni22stig_system_is_core: false

# win_skip_for_test is used in the playbook to skip over WINRM based controls that
# may cause WINRM Basic Connection Type to be disabled.
# Setting win_skip_for_test to 'false' will enable Secure Connection types only.
Expand Down
2 changes: 2 additions & 0 deletions tasks/cat2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@
notify: reboot_windows
when:
- wn22_00_000320
- not win22stig_is_server_core
tags:
- WN22-00-000320
- CAT2
Expand Down Expand Up @@ -1070,6 +1071,7 @@
state: absent
when:
- wn22_00_000370
- not win22stig_is_server_core
tags:
- WN22-00-000370
- CAT2
Expand Down
8 changes: 8 additions & 0 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
ansible.builtin.set_fact:
win22stig_cloud_based_system: true
when:
- ansible_system_vendor == 'Microsoft Corporation'
- ansible_virtualization_type == 'Hyper-V' or
ansible_virtualization_type == 'hvm' or
ansible_virtualization_type == 'kvm'
Expand Down Expand Up @@ -60,3 +61,10 @@
when:
- wn22_00_000390 or
wn22_00_000400

- name: Set Fact If Server Core installation
ansible.builtin.set_fact:
win22stig_is_server_core: true
when: ansible_os_installation_type == 'Server Core'
tags:
- always

0 comments on commit cb7ae25

Please sign in to comment.