add teardown tag to relevant tasks

This commit is contained in:
abrown38 committed 2024-05-20 13:54:34 +00:00
1 parent 0597042211
commit 383a9ee930
1 file changed
+8
+8
View File
@@ -5,6 +5,7 @@
- ../vars/{{ project_zone }}.yml
tasks:
- name: Create workbench VMs (ASYNCHRONUS)
tags: teardown
os_server:
name: "{{ os_project }}-{{ win_project }}-wb{{ '%02d' | format(item+1) }}"
state: "{{ state }}"
@@ -39,6 +40,7 @@
- 'wb_quantity|int > 1'
- name: Create workbench VMs (SEQUENTIAL)
tags: teardown
os_server:
name: "{{ os_project }}-{{ win_project }}-wb{{ '%02d' | format(item+1) }}"
state: "{{ state }}"
@@ -79,6 +81,7 @@
when: 'async_wb.skipped == false'
- name: Create application VMs (ASYNCHRONUS)
tags: teardown
os_server:
name: "{{ os_project }}-{{ win_project }}-app{{ '%02d' | format(item+1) }}"
state: "{{ state }}"
@@ -113,6 +116,7 @@
- 'app_quantity|int > 1'
- name: Create application VMs (SEQUENTIAL)
tags: teardown
os_server:
name: "{{ os_project }}-{{ win_project }}-app{{ '%02d' | format(item+1) }}"
state: "{{ state }}"
@@ -153,6 +157,7 @@
when: 'async_app.skipped == false'
- name: Create GPU VMs (ASYNCHRONUS)
tags: teardown
os_server:
name: "{{ os_project }}-{{ win_project }}-gpu{{ '%02d' | format(item+1) }}"
state: "{{ state }}"
@@ -187,6 +192,7 @@
- 'gpu_quantity|int > 1'
- name: Create GPU VMs (SEQUENTIAL)
tags: teardown
os_server:
name: "{{ os_project }}-{{ win_project }}-gpu{{ '%02d' | format(item+1) }}"
state: "{{ state }}"
@@ -229,6 +235,7 @@
- name: Common VMs
block:
- name: Create Common VMs (DCs, Fileservers, WSUS, Chocolatey)
tags: teardown
os_server:
name: "{{ item.name }}"
state: "{{ state }}"
@@ -273,6 +280,7 @@
- name: Common VMs
block:
- name: Create Common VMs (DCs, Fileservers, WSUS, Chocolatey)
tags: teardown
os_server:
name: "{{ item.name }}"
state: "{{ state }}"