mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:37:21 +00:00
Move start menu task to client and move gpo script to setup.yml
This commit is contained in:
1 parent
9d0f0c3ac0
commit
5f53166089
7 files changed
+19
-18
No files matched your search
File renamed without changes.
@@ -1,4 +1,5 @@
|
||||
---
|
||||
- import_tasks: features.yml
|
||||
- import_tasks: chocolatey.yml
|
||||
- import_tasks: start_menu.yml
|
||||
- import_tasks: rd_gateway.yml
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
- name: Copy start menu files
|
||||
tags: copy_startmenu
|
||||
block:
|
||||
- name: Copy start menu XML to client VMs
|
||||
win_copy:
|
||||
src: "workbench.yml"
|
||||
dest: "C:\\eidf\\start_menu.yml"
|
||||
force: true
|
||||
tags: workbench_startmenu
|
||||
when: inventory_hostname in groups['meta-variant_workbench']
|
||||
@@ -1,14 +0,0 @@
|
||||
---
|
||||
- name: Apply group policy
|
||||
win_shell: powershell C:\eidf\{{ group_policy_script }}
|
||||
tags: apply_gpo
|
||||
when: inventory_hostname in groups['meta-name_dc01']
|
||||
|
||||
- name: Copy Start menu DC01
|
||||
win_copy:
|
||||
src: "{{ start_menu_xml }}"
|
||||
dest: "C:\\eidf"
|
||||
force: true
|
||||
tags: start_menu
|
||||
when: inventory_hostname in groups['meta-name_dc01']
|
||||
|
||||
@@ -2,5 +2,4 @@
|
||||
- import_tasks: features.yml
|
||||
- import_tasks: setup.yml
|
||||
- import_tasks: users.yml
|
||||
- import_tasks: group_policy.yml
|
||||
#- import_tasks: remote_desktop.yml
|
||||
@@ -20,13 +20,18 @@
|
||||
force: true
|
||||
|
||||
- name: Group policy script
|
||||
tags: copy_script
|
||||
tags: gpo_script
|
||||
block:
|
||||
- name: Copy Group Policy script to DC01
|
||||
win_copy:
|
||||
src: "{{ group_policy_script }}"
|
||||
dest: "C:\\eidf"
|
||||
force: true
|
||||
tags: copy_script
|
||||
|
||||
- name: Apply group policy
|
||||
win_shell: powershell C:\eidf\{{ group_policy_script }}
|
||||
tags: apply_script
|
||||
when: inventory_hostname in groups['meta-name_dc01']
|
||||
|
||||
- name: Promote DC01
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
group_policy_script: OpenStackADBuildv6.2.ps1
|
||||
start_menu_xml: wawb01.xml
|
||||
group_policy_script: OpenStackADBuildv6.2.ps1
|
||||
Reference in new issue
Block a user