mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-30 16:30:15 +00:00
add teardown tags
This commit is contained in:
1 parent
7fb47d8b64
commit
5998aaabbc
1 file changed
+3
@@ -7,6 +7,7 @@
|
|||||||
- name: Load variables (Standard vs protected)
|
- name: Load variables (Standard vs protected)
|
||||||
include_vars:
|
include_vars:
|
||||||
file: ../vars/{{ project_zone }}.yml
|
file: ../vars/{{ project_zone }}.yml
|
||||||
|
tags: always
|
||||||
|
|
||||||
- name: Create security groups
|
- name: Create security groups
|
||||||
os_security_group:
|
os_security_group:
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
state: "{{ state }}"
|
state: "{{ state }}"
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
with_items: "{{ security_groups }}"
|
with_items: "{{ security_groups }}"
|
||||||
|
tags: teardown
|
||||||
|
|
||||||
- name: Remove default egress rules (protected only)
|
- name: Remove default egress rules (protected only)
|
||||||
os_security_group:
|
os_security_group:
|
||||||
@@ -24,6 +26,7 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- user_vms
|
- user_vms
|
||||||
- domain_member
|
- domain_member
|
||||||
|
# temporary
|
||||||
when: project_zone == "protected"
|
when: project_zone == "protected"
|
||||||
|
|
||||||
- name: Set remote group rules for security groups
|
- name: Set remote group rules for security groups
|
||||||
|
|||||||
Reference in new issue
Block a user