fixed linting

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell
2026-04-21 08:29:36 +01:00
parent a7ccacc40c
commit 5ff9048ee9
2 changed files with 6 additions and 8 deletions
+5 -7
View File
@@ -34,19 +34,17 @@
# https://github.com/ansible/ansible/blob/905131fc76a07cf89dbc8d33e7a4910da3f10a16/lib/ansible/module_utils/facts/virtual/linux.py#L205
- name: "PRELIM | Set Fact If Cloud-Based System (Auto-detect)."
when:
- hosted_virtual_system_override is not defined
- not ansible_virtualization_type == 'VMware' or
(ansible_system_vendor == 'Microsoft Corporation' and
ansible_virtualization_type in ['Hyper-V', 'hvm', 'kvm'])
- hosted_virtual_system_override is not defined
- not ansible_virtualization_type == 'VMware' or (ansible_system_vendor == 'Microsoft Corporation' and ansible_virtualization_type in ['Hyper-V', 'hvm', 'kvm'])
tags: always
ansible.builtin.set_fact:
discovered_cloud_based_system: true
discovered_cloud_based_system: true
- name: "PRELIM | Set Fact If Cloud-Based System (manual override)."
when: hosted_virtual_system_override is defined
tags: always
ansible.builtin.set_fact:
discovered_cloud_based_system: "{{ hosted_virtual_system_override }}"
discovered_cloud_based_system: "{{ hosted_virtual_system_override }}"
- name: "PRELIM | Check Hyper-V Installation"
ansible.windows.win_shell: Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All | Select-Object -Property State | ft -hide
@@ -117,7 +115,7 @@
- name: PRELIM | Create List Fact For Current Users SIDs from HKEY_USERS.
ansible.builtin.set_fact:
discovered_hku_loaded_list: "{{ discovered_current_users_loaded_hku.stdout | regex_replace('HKEY_USERS\\\\','') | split }}"
discovered_hku_loaded_list: "{{ discovered_current_users_loaded_hku.stdout | regex_replace('HKEY_USERS\\\\', '') | split }}"
when: win11cis_section19
tags:
- always
+1 -1
View File
@@ -7,7 +7,7 @@ warn_control_list: ""
warn_count: 0
# This sets the variable that is created for the banner.
lockdown_banner: "{{lookup('file', './templates/banner.txt')}}"
lockdown_banner: "{{ lookup('file', './templates/banner.txt') }}"
# discovered_cloud_based_system is a setting built into the playbook for testing locally vs. Azure.
# We have found certain controls that need to be set in a different order when being applied in the