mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-28 20:17:21 +00:00
Create OUs before GPO script runs
This commit is contained in:
1 parent
fa36aa5983
commit
de0d20b044
3 files changed
+23
-23
No files matched your search
@@ -1,5 +1,3 @@
|
|||||||
---
|
---
|
||||||
- import_tasks: features.yml
|
- import_tasks: features.yml
|
||||||
- import_tasks: setup.yml
|
- import_tasks: setup.yml
|
||||||
- import_tasks: users.yml
|
|
||||||
#- import_tasks: remote_desktop.yml
|
|
||||||
@@ -91,6 +91,29 @@
|
|||||||
when: dc02_promotion.reboot_required | default(false) == true
|
when: dc02_promotion.reboot_required | default(false) == true
|
||||||
when: inventory_hostname in groups['meta-name_dc02']
|
when: inventory_hostname in groups['meta-name_dc02']
|
||||||
|
|
||||||
|
|
||||||
|
- name: Create Required OUs and Users
|
||||||
|
tags: post_promotion_tasks
|
||||||
|
block:
|
||||||
|
- name: Create various OUs
|
||||||
|
community.windows.win_domain_ou:
|
||||||
|
name: "{{ item }}"
|
||||||
|
path: "DC={{ win_project }},DC=loc"
|
||||||
|
state: present
|
||||||
|
protected: true
|
||||||
|
loop: "{{ OUs }}"
|
||||||
|
|
||||||
|
- name: Create file-transfer user for
|
||||||
|
community.windows.win_domain_user:
|
||||||
|
name: "{{ filetransfer_user }}"
|
||||||
|
firstname: File
|
||||||
|
surname: Transfer
|
||||||
|
password: "{{ transfer_user_password }}"
|
||||||
|
state: present
|
||||||
|
password_never_expires: yes
|
||||||
|
when: inventory_hostname in groups['meta-name_dc01']
|
||||||
|
|
||||||
|
|
||||||
- name: Group policy script
|
- name: Group policy script
|
||||||
tags: gpo_script
|
tags: gpo_script
|
||||||
block:
|
block:
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Create Required OUs and Users
|
|
||||||
tags: post_promotion_tasks
|
|
||||||
block:
|
|
||||||
- name: Create various OUs
|
|
||||||
community.windows.win_domain_ou:
|
|
||||||
name: "{{ item }}"
|
|
||||||
path: "DC={{ win_project }},DC=loc"
|
|
||||||
state: present
|
|
||||||
protected: true
|
|
||||||
loop: "{{ OUs }}"
|
|
||||||
|
|
||||||
- name: Create file-transfer user for
|
|
||||||
community.windows.win_domain_user:
|
|
||||||
name: "{{ filetransfer_user }}"
|
|
||||||
firstname: File
|
|
||||||
surname: Transfer
|
|
||||||
password: "{{ transfer_user_password }}"
|
|
||||||
state: present
|
|
||||||
password_never_expires: yes
|
|
||||||
when: inventory_hostname in groups['meta-name_dc01']
|
|
||||||
Reference in new issue
Block a user