mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-29 14:47:21 +00:00
added Role win_study
This commit is contained in:
1 parent
a02177f762
commit
4cea3b4c82
6 files changed
+112
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user