mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 13:57:21 +00:00
swap out deprecated ansible modules
This commit is contained in:
1 parent
664278eaf1
commit
201c3c277e
1 file changed
+7
-7
@@ -3,7 +3,7 @@
|
||||
tags: promote_dc01
|
||||
block:
|
||||
- name: Promote DC01 to domain controller
|
||||
win_domain:
|
||||
microsoft.ad.domain:
|
||||
dns_domain_name: "{{ win_project }}.loc"
|
||||
safe_mode_password: "{{ safemode_password }}"
|
||||
domain_netbios_name: "{{ win_project|upper }}"
|
||||
@@ -53,7 +53,7 @@
|
||||
win_shell: ipconfig /flushdns
|
||||
|
||||
- name: Promote DC02 to domain controller
|
||||
win_domain_controller:
|
||||
microsoft.ad.domain_controller:
|
||||
dns_domain_name: "{{ win_project }}.loc"
|
||||
domain_admin_user: "Administrator@{{ win_project }}.loc"
|
||||
domain_admin_password: "{{ ansible_password }}"
|
||||
@@ -67,7 +67,7 @@
|
||||
minutes: 2
|
||||
|
||||
- name: Promote DC02 to domain controller
|
||||
win_domain_controller:
|
||||
microsoft.ad.domain_controller:
|
||||
dns_domain_name: "{{ win_project }}.loc"
|
||||
domain_admin_user: "Administrator@{{ win_project }}.loc"
|
||||
domain_admin_password: "{{ ansible_password }}"
|
||||
@@ -98,15 +98,15 @@
|
||||
- post_promotion_tasks
|
||||
block:
|
||||
- name: Create various OUs
|
||||
community.windows.win_domain_ou:
|
||||
microsoft.ad.ou:
|
||||
name: "{{ item }}"
|
||||
path: "DC={{ win_project }},DC=loc"
|
||||
state: present
|
||||
protected: true
|
||||
protect_from_deletion: true
|
||||
loop: "{{ OUs }}"
|
||||
|
||||
- name: Create file-transfer user
|
||||
community.windows.win_domain_user:
|
||||
microsoft.ad.user:
|
||||
name: "{{ filetransfer_user }}"
|
||||
firstname: File
|
||||
surname: Transfer
|
||||
@@ -115,7 +115,7 @@
|
||||
password_never_expires: yes
|
||||
|
||||
- name: Create file-manager user
|
||||
community.windows.win_domain_user:
|
||||
microsoft.ad.user:
|
||||
name: "{{ filemanager_user }}"
|
||||
firstname: File
|
||||
surname: Manager
|
||||
|
||||
Reference in new issue
Block a user