make search case insensitive, uncomment tasks from main
This commit is contained in:
+10
-10
@@ -1,18 +1,18 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Mount GPO Share path
|
# Mount GPO Share path
|
||||||
#- name: Mount GPO Share path
|
- name: Mount GPO Share path
|
||||||
# include_role:
|
include_role:
|
||||||
# name: "cifs_mount"
|
name: "cifs_mount"
|
||||||
# vars:
|
vars:
|
||||||
# smb_username: "{{ ITMFG_USERNAME }}"
|
smb_username: "{{ ITMFG_USERNAME }}"
|
||||||
# smb_password: "{{ ITMFG_PASSWORD }}"
|
smb_password: "{{ ITMFG_PASSWORD }}"
|
||||||
# server_path: "//172.23.1.23/gpo"
|
server_path: "//172.23.1.23/gpo"
|
||||||
# target_path: "{{ gpo_yaml_share }}"
|
target_path: "{{ gpo_yaml_share }}"
|
||||||
|
|
||||||
# create python gpo service
|
# create python gpo service
|
||||||
#- name: GPO Site - python api service
|
- name: GPO Site - python api service
|
||||||
# include_tasks: api.yaml
|
include_tasks: api.yaml
|
||||||
|
|
||||||
# create python gpo service
|
# create python gpo service
|
||||||
- name: GPO Site - dashboard container
|
- name: GPO Site - dashboard container
|
||||||
|
|||||||
+3
-1
@@ -21,7 +21,9 @@ def get_groups():
|
|||||||
if details is None:
|
if details is None:
|
||||||
continue
|
continue
|
||||||
for detail in details:
|
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({
|
gpos.append({
|
||||||
"gpo": gpo,
|
"gpo": gpo,
|
||||||
"local_group": detail['local_group'],
|
"local_group": detail['local_group'],
|
||||||
|
|||||||
Reference in New Issue
Block a user