X-Git-Url: https://git.phdru.name/?p=ansible.git;a=blobdiff_plain;f=playbooks%2Fdebian%2Fadd-apache-vhost;h=4139eb435e7cbefe2857ddbdc03ecb41bc97055c;hp=5acb1e2278f8ef2e786dc9365067faf9fe621086;hb=2e50406aad442b9cb18ece40e9a8bf6cce227d4e;hpb=c5ee40dbd1ece159004ec5d7e11a0512e57f7823 diff --git a/playbooks/debian/add-apache-vhost b/playbooks/debian/add-apache-vhost index 5acb1e2..4139eb4 100755 --- a/playbooks/debian/add-apache-vhost +++ b/playbooks/debian/add-apache-vhost @@ -1,13 +1,15 @@ #! /bin/sh -if [ -z "$1" ]; then - echo "Usage: $0 vhost [...params...]" >&2 +if [ -z "$2" ]; then + echo "Usage: $0 host vhost [...params...]" >&2 exit 1 fi +host="$1" +shift vhost="$1" shift cd "`dirname \"$0\"`" && exec ../run-roles debian/add-apache-vhost "$@" \ - -e virtual_host="$vhost" -e gather_facts=true + -e virtual_host="$vhost" -e gather_facts=true -e hosts="$host"