Skip to content
Snippets Groups Projects
revert_and_setup.sh 321 B
Newer Older
#!/bin/sh

set -e

Paul Maruhn's avatar
Paul Maruhn committed
for vm in ffhl-gw01 ffhl-gw02; do
	echo "reverting $vm"

	virsh snapshot-revert --current --domain $vm
	ssh -q $vm systemctl restart systemd-timesyncd
done


echo "waiting..."
Paul Maruhn's avatar
Paul Maruhn committed
sleep 5

echo "removing artifacts"
rm -rf artifacts

Paul Maruhn's avatar
Paul Maruhn committed
echo "run the setup"
ansible-playbook -vvv -i hosts_new debian_setup.yml