]> git.phdru.name Git - ansible.git/blob - playbooks/debian/add-apache-vhost
Feat(playbooks/debian): Pass the host to the scripts
[ansible.git] / playbooks / debian / add-apache-vhost
1 #! /bin/sh
2
3 if [ -z "$2" ]; then
4    echo "Usage: $0 host vhost [...params...]" >&2
5    exit 1
6 fi
7
8 host="$1"
9 shift
10 vhost="$1"
11 shift
12
13 cd "`dirname \"$0\"`" &&
14 exec ../run-roles debian/add-apache-vhost "$@" \
15    -e virtual_host="$vhost" -e gather_facts=true -e hosts="$host"