forked from redhat-cop/agnosticd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
destroy.yml
21 lines (18 loc) · 804 Bytes
/
destroy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
################################################################################
################################################################################
############ Step 006 Destroy Workshop using workshop_prefix
################################################################################
################################################################################
- import_playbook: include_vars.yml
- name: Detect in what region the stack is
hosts: localhost
connection: local
gather_facts: False
become: no
tasks:
- when:
- cloud_provider == 'ec2'
- target_regions is not defined
include_tasks: cloud_providers/ec2_detect_region_tasks.yml
- import_playbook: "{{ ANSIBLE_REPO_PATH | default('.') }}/configs/{{ env_type }}/destroy_env.yml"