added Role win_study

This commit is contained in:
abrown38 committed 2024-04-23 10:13:00 +00:00
1 parent a02177f762
commit 4cea3b4c82
6 files changed
+112

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
---
- name: Create Study
tags: create_study
block:
- name: Create study folders and import/export folders
win_file:
path: "{{ study_folder }}\\{{ item }}"
state: directory
with_items: ["import", "export"]
- name: Create study folders on T drive
ansible.windows.win_file:
path: "T:\\{{ item }}\\{{ study_code }}"
state: directory
with_items: ["Import", "Export"]
- name: Create AD group
community.windows.win_domain_group:
name: "{{ study_code }}"
description: "{{ study_code }} study"
path: "ou=Project Groups,dc={{ win_project }},dc=loc"
scope: domainlocal
category: security
delegate_to: "{{ os_project }}-{{ win_project }}-dc01"