Skip to content

Commit c04998a

Browse files
afcollinsmcornea
andauthored
Apply suggestion from @mcornea
Co-authored-by: Marius Cornea <[email protected]>
1 parent 81d9a7d commit c04998a

File tree

1 file changed

+1
-1
lines changed

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: Start one vm
33
shell:
4-
for i in in $(virsh list --all | grep vm | grep "shut off" |head -1| awk '{ print $2 }') ; do virsh start $i ; done
4+
for i in $(virsh list --all --name --state-shutoff | grep vm |head -1) ; do virsh start $i ; done
55
become: true

0 commit comments

Comments
 (0)