mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-31 21:40:15 +00:00
Added win_user role
This commit is contained in:
1 parent
e44a1566ad
commit
13f8c7fc20
5 files changed
+77
No files matched your search
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Create AD user
|
||||
tags: create_user
|
||||
block:
|
||||
- name: Create user in AD
|
||||
win_domain_user:
|
||||
name: "{{ username }}"
|
||||
firstname: "{{ firstname }}"
|
||||
surname: "{{ lastname }}"
|
||||
description: "{{ user_role }} - {{ study_code }}"
|
||||
path: ou=Project Users,dc={{ win_project }},dc=loc
|
||||
groups:
|
||||
- "{{ study_code }}"
|
||||
- Remote Desktop Users
|
||||
email: "{{ email }}"
|
||||
attributes:
|
||||
HomeDirectory: "{{ study_folder }}"
|
||||
password: "{{ password }}"
|
||||
password_expired: false
|
||||
state: present
|
||||
Reference in new issue
Block a user