blob: 199963fdf309045b7953635fa8f924b4418869a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
echo "$0 <vm> <distro> <codename>"
exit 1
fi
echo "installing vm: $1 with $2/$3"
echo ""
echo "########## clearing old ssh host keys #########"
./remove-known-host.sh "$1"
echo ""
echo "######## running the install playbook ########"
exec ansible-playbook -e "vmname=$1" -e "vmdistro=$2" -e "vmdistcodename=$3" vminstall.yaml
|