mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-31 04:10:15 +00:00
Add user password reset and ability to disable an account
This commit is contained in:
1 parent
39722402f5
commit
2a4c00c015
8 files changed
+110
-49
No files matched your search
@@ -0,0 +1,14 @@
|
||||
---
|
||||
- name: Reset AD user password
|
||||
block:
|
||||
- name: debug
|
||||
debug:
|
||||
var: password
|
||||
|
||||
- name: Reset AD user password
|
||||
microsoft.ad.user:
|
||||
name: "{{ username }}"
|
||||
path: ou=Project Users,dc={{ win_project }},dc=loc
|
||||
password: "{{ password }}"
|
||||
password_expired: true
|
||||
state: present
|
||||
Reference in new issue
Block a user