added virsh destroy to nuke
This commit is contained in:
parent
0b92467965
commit
3369b5d9d9
9
nuke.yml
9
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"
|
||||
|
|
Loading…
Reference in New Issue