diff --git a/nuke.yml b/nuke.yml index 19c36e4..5bc0a48 100644 --- a/nuke.yml +++ b/nuke.yml @@ -14,3 +14,12 @@ - name: remove volumes shell: "rm -rf /srv" + +- hosts: nova-compute + gather_facts: false + become: True + tasks: + - name: kill all vm's + shell: "for machine in $(virsh list --uuid ); do virsh destroy $machine ; done" + - name: wipe all vm's + shell: "for machine in $(virsh list --uuid --all); do virsh undefine $machine ; done"