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