diff options
Diffstat (limited to 'vm-install.sh')
-rwxr-xr-x | vm-install.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/vm-install.sh b/vm-install.sh index 428fdb5f..0cc0be48 100755 --- a/vm-install.sh +++ b/vm-install.sh @@ -5,12 +5,19 @@ if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then exit 1 fi -echo "installing vm: $1 with $2/$3" +name=$1 +shift +distro=$1 +shift +codename=$1 +shift + +echo "installing vm: $name with $distro/$codename" echo "" echo "########## clearing old ssh host keys #########" -./remove-known-host.sh "$1" +./remove-known-host.sh "$name" echo "" echo "######## running the install playbook ########" -exec ansible-playbook -e "vmname=$1" -e "vmdistro=$2" -e "vmdistcodename=$3" vm-install.yml +exec ansible-playbook -e "vmname=$name" -e "vmdistro=$distro" -e "vmdistcodename=$codename" $@ vm-install.yml |