Tok
2018-11-09 04259f14a042c84a1164402d9ac2009c9db6adf5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
################################################################################
################################################################################
############ Step 006 Destroy Workshop using workshop_prefix
################################################################################
################################################################################
 
- name: Detect in what region the stack is
  hosts: localhost
  connection: local
  gather_facts: False
  become: no
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml"
  tasks:
    - when: cloud_provider == 'ec2'
      include_tasks: cloud_providers/ec2_detect_region_tasks.yml
 
- import_playbook: "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/destroy_env.yml"