make search case insensitive, uncomment tasks from main
This commit is contained in:
+10
-10
@@ -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
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user