mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 13:47:21 +00:00
25 lines
617 B
YAML
25 lines
617 B
YAML
---
|
|
- name: Create VMs
|
|
block:
|
|
- import_tasks: workbench.yml
|
|
when: new_wb_quantity|int > 0
|
|
|
|
- import_tasks: application.yml
|
|
when: new_app_quantity|int > 0
|
|
|
|
- import_tasks: gpu.yml
|
|
when: new_gpu_quantity|int > 0
|
|
|
|
- name: Set Password Status
|
|
replace:
|
|
path: /deployments/{{ os_project }}-{{ win_project }}/PASSWORD
|
|
regexp: '^finished$'
|
|
replace: 'pending'
|
|
when: |
|
|
new_wb_quantity|int > 0 or
|
|
new_app_quantity|int > 0 or
|
|
new_gpu_quantity|int > 0
|
|
when: cleanup == 'false'
|
|
|
|
- import_tasks: metadata.yml
|
|
when: cleanup == 'true' |