job no longer fails if there are 0 of a client variant (don't like conditionals used should fix)

This commit is contained in:
abrown38 committed 2024-05-31 13:09:22 +01:00
1 parent 3abf25b04c
commit 18a57efbd1
5 files changed
+117 -56

No files matched your search

+30 -14
View File
@@ -1,31 +1,47 @@
---
- name: Copy start menu files
tags: copy_startmenu
- name: Copy start menu to workbench VMs
tags:
- copy_startmenu
- workbench_startmenu
block:
- name: Copy start menu XML to client VMs
- name: Copy start menu to workbench VMs
win_copy:
src: "workbench.xml"
dest: "C:\\eidf\\start_menu.xml"
dest: "C:\\eidf\\{{ win_project }}.xml"
force: true
tags: workbench_startmenu
when: inventory_hostname in groups['meta-variant_workbench']
when: groups['meta-variant_workbench'] is defined
- name: Copy start menu XML to client VMs
- name: Copy start menu to application VMs
tags:
- copy_startmenu
- application_startmenu
block:
- name: Copy start menu to application VMs
win_copy:
src: "application.xml"
dest: "C:\\eidf\\start_menu.xml"
dest: "C:\\eidf\\{{ win_project }}.xml"
force: true
tags: application_startmenu
when: inventory_hostname in groups['meta-variant_application']
when: groups['meta-variant_application'] is defined
- name: Copy start menu XML to client VMs
- name: Copy start menu to workbench VMs
tags:
- copy_startmenu
- gpu_startmenu
block:
- name: Copy start menu to gpu VMs
win_copy:
src: "gpu.xml"
dest: "C:\\eidf\\start_menu.xml"
dest: "C:\\eidf\\{{ win_project }}.xml"
force: true
tags: gpu_startmenu
when: inventory_hostname in groups['meta-variant_gpu']
when: groups['meta-variant_gpu'] is defined
- name: Update Group Policy
tags: workbench_startmenu
win_shell: gpupdate /force /boot /logoff
- name: Update Group Policy
win_shell: gpupdate /force /boot /logoff
tags:
- copy_startmenu
- workbench_startmenu
- application_startmenu
- gpu_startmenu