Skip to content

Commit 81d9a7d

Browse files
afcollinsmcornea
andauthored
Update ansible/roles/hv-vm-destroy/tasks/main.yml
Co-authored-by: Marius Cornea <[email protected]>
1 parent a68cc2d commit 81d9a7d

File tree

1 file changed

+1
-1
lines changed
  • ansible/roles/hv-vm-destroy/tasks

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
- name: Stop all vms
33
shell:
4-
for i in in $(virsh list --all | grep vm | awk '{ print $2 }') ; do virsh destroy $i ; done
4+
for i in $(virsh list --all --name | grep vm) ; do virsh destroy $i ; done
55
become: true

0 commit comments

Comments
 (0)