summaryrefslogtreecommitdiff
path: root/vm-install.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-12-09 00:56:13 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-12-09 00:56:13 +0100
commit14c69ac3f074d7cea31687ecc105c015b8a55ec7 (patch)
tree6c2ffd64728bd632e46d04e699cd3bd3ec61f894 /vm-install.sh
parentimprovments for preseed role (diff)
cleanup and imrpovement of vm roles (still not working)
Diffstat (limited to 'vm-install.sh')
-rwxr-xr-xvm-install.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm-install.sh b/vm-install.sh
index 933992cb..e8893efa 100755
--- a/vm-install.sh
+++ b/vm-install.sh
@@ -1,7 +1,7 @@
#!/bin/bash
if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
- echo "$0 <vm> <distro> <codename>"
+ echo "$0 <hostname> <distro> <codename>"
exit 1
fi
name=$1
@@ -24,4 +24,4 @@ echo "########## clearing old ssh host keys #########"
echo ""
echo "######## running the install playbook ########"
-exec ansible-playbook -e "vmname=$name" -e "vmdistro=$distro" -e "vmdistcodename=$codename" $@ "$env_group/vm-install.yml"
+exec ansible-playbook -e "hostname=$name" -e "install_distro=$distro" -e "install_codename=$codename" -e "hostenv=$env_group" $@ "$env_group/vm-install.yml"