]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/add-dns-domain
Feat(playbooks/debian): Pass the host to the scripts
[ansible.git] / playbooks / debian / add-dns-domain
index f4d2f4a550dc90228f9ff0dadbb86e98bb7077ba..68bd6de24ff051112d491fdcce740aba73768068 100755 (executable)
@@ -1,14 +1,15 @@
 #! /bin/sh
 
-if [ -z "$1" ]; then
-   echo "Usage: $0 domain [...params...]" >&2
+if [ -z "$2" ]; then
+   echo "Usage: $0 host domain [...params...]" >&2
    exit 1
 fi
 
+host="$1"
+shift
 domain="$1"
 shift
 
 cd "`dirname \"$0\"`" &&
-ANSIBLE_ROLES_PATH=debian/roles:roles \
-   exec ../run-roles add-dns-domain "$@" \
-      -e domain="$domain" -e gather_facts=true
+exec ../run-roles debian/add-dns-domain "$@" \
+   -e domain="$domain" -e gather_facts=true -e hosts="$host"