commit | author | age
|
15b4ac
|
1 |
--- |
93d261
|
2 |
################################################################################ |
SS |
3 |
################################################################################ |
|
4 |
############ Step 006 Destroy Workshop using workshop_prefix |
|
5 |
################################################################################ |
|
6 |
################################################################################ |
|
7 |
|
192691
|
8 |
- import_playbook: include_vars.yml |
GC |
9 |
|
5c7a03
|
10 |
- name: Detect in what region the stack is |
GC |
11 |
hosts: localhost |
|
12 |
connection: local |
|
13 |
gather_facts: False |
|
14 |
become: no |
|
15 |
tasks: |
7273c8
|
16 |
- when: |
GC |
17 |
- cloud_provider == 'ec2' |
|
18 |
- target_regions is not defined |
6b74fb
|
19 |
include_tasks: cloud_providers/ec2_detect_region_tasks.yml |
5c7a03
|
20 |
|
6b9f19
|
21 |
- import_playbook: >- |
NS |
22 |
{{ lookup('first_found', { |
|
23 |
'files': [ 'destroy_env.yml', cloud_provider + '_destroy_env.yml' ], |
|
24 |
'paths': [ 'configs/' + env_type, 'cloud_providers/' ] |
|
25 |
}) |
|
26 |
}} |