9 lines
171 B
Bash
9 lines
171 B
Bash
|
script=$1
|
||
|
VMs=$(sudo virsh list --state-running --name | grep chalec)
|
||
|
|
||
|
for vm in $VMs
|
||
|
do
|
||
|
echo Executing script $script on $vm ...
|
||
|
ssh $vm 'bash -s' < $script
|
||
|
done
|