Mitesh The Mouse
2020-02-12 e8b2a9153ac700e2e19c3aa0c9fec68d43d761be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
- import_playbook: ../../include_vars.yml
 
- name: Delete Infrastructure
  hosts: localhost
  connection: local
  gather_facts: False
  become: no
  tasks:
    - name: Run infra-ec2-template-destroy
      include_role:
        name: "infra-{{cloud_provider}}-template-destroy"
      when: cloud_provider == 'ec2'
 
    - name: Run infra-azure-template-destroy
      include_role:
        name: "infra-{{cloud_provider}}-template-destroy"
      when: cloud_provider == 'azure'