make search case insensitive, uncomment tasks from main

This commit is contained in:
2025-11-07 09:54:58 -08:00
parent ee610e334b
commit 0da4a2c08a
2 changed files with 13 additions and 11 deletions
+10 -10
View File
@@ -1,18 +1,18 @@
---
# Mount GPO Share path
#- name: Mount GPO Share path
# include_role:
# name: "cifs_mount"
# vars:
# smb_username: "{{ ITMFG_USERNAME }}"
# smb_password: "{{ ITMFG_PASSWORD }}"
# server_path: "//172.23.1.23/gpo"
# target_path: "{{ gpo_yaml_share }}"
- name: Mount GPO Share path
include_role:
name: "cifs_mount"
vars:
smb_username: "{{ ITMFG_USERNAME }}"
smb_password: "{{ ITMFG_PASSWORD }}"
server_path: "//172.23.1.23/gpo"
target_path: "{{ gpo_yaml_share }}"
# create python gpo service
#- name: GPO Site - python api service
# include_tasks: api.yaml
- name: GPO Site - python api service
include_tasks: api.yaml
# create python gpo service
- name: GPO Site - dashboard container
+3 -1
View File
@@ -21,7 +21,9 @@ def get_groups():
if details is None:
continue
for detail in details:
if detail['ad_group'] == group_name:
# Check if 'ad_group' exists and is not None before accessing it
ad_group = detail.get('ad_group')
if isinstance(ad_group, str) and ad_group.lower() == group_name.lower():
gpos.append({
"gpo": gpo,
"local_group": detail['local_group'],