Files
product-demos/cloud/destroy_vm.yml
willtome 0ed4737985 Win patch (#11)
Add patching report for windows, cloud destroy VM, and Windows Full blueprint
2022-03-30 12:03:08 -04:00

19 lines
435 B
YAML

---
- hosts: "{{ HOSTS }}"
gather_facts: no
tasks:
- name: list systems to be destroyed
debug:
msg: "{{ inventory_hostname }}"
- name: pause for review...
pause:
seconds: 30
prompt: "Systems listed above 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"