diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-11-23 01:12:59 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-11-23 01:12:59 +0100 |
commit | e273477b56d8e08ad1eb288d79e60c491df3c887 (patch) | |
tree | f930b32b01cbe386808a87b9e1ea7c22713cbe6c /vm-install.sh | |
parent | added inital role vm-host (diff) |
vm install role basically works now - needs cleanup and testing
Diffstat (limited to 'vm-install.sh')
-rwxr-xr-x | vm-install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm-install.sh b/vm-install.sh index 9f0f52a5..199963fd 100755 --- a/vm-install.sh +++ b/vm-install.sh @@ -1,11 +1,11 @@ #!/bin/bash -if [ -z "$1" ] || [ -z "$2" ]; then - echo "$0 <vm> <distro>" +if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then + echo "$0 <vm> <distro> <codename>" exit 1 fi -echo "installing vm: $1 with distro $2" +echo "installing vm: $1 with $2/$3" echo "" echo "########## clearing old ssh host keys #########" @@ -13,4 +13,4 @@ echo "########## clearing old ssh host keys #########" echo "" echo "######## running the install playbook ########" -exec ansible-playbook -e "vmname=$1" -e "vmdistro=$2" vminstall.yaml +exec ansible-playbook -e "vmname=$1" -e "vmdistro=$2" -e "vmdistcodename=$3" vminstall.yaml |