---
|
- 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'
|