Files
product-demos/cloud/destroy_vm.yml
willtome 8e56c5bbf6 Add cloud and patching demos (#9)
Add demos for cloud provisioning and patching
2022-03-29 15:01:28 -04:00

15 lines
359 B
YAML

---
- hosts: "{{ HOSTS }}"
gather_facts: no
tasks:
- name: list systems to be destroyed
pause:
seconds: 30
prompt: "{{ inventory_hostname }} will be DESTROYED in 30 seconds. Cancel the job to Abort."
- name: destroy vm
include_role:
name: "demo.cloud.aws"
tasks_from: destroy_vm
when: "'cloud_aws' in group_names"