]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/add-apache-vhost
Rename playbooks: debian-* -> debian/*
[ansible.git] / playbooks / debian / add-apache-vhost
diff --git a/playbooks/debian/add-apache-vhost b/playbooks/debian/add-apache-vhost
new file mode 100755 (executable)
index 0000000..514c86b
--- /dev/null
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+if [ -z "$1" ]; then
+   echo "Usage: $0 vhost [...params...]" >&2
+   exit 1
+fi
+
+vhost="$1"
+shift
+
+cd "`dirname \"$0\"`" &&
+ANSIBLE_ROLES_PATH=debian/roles \
+   exec ../run-role add-apache-vhost "$@" \
+      -e virtual_host="$vhost" -e gather_facts=true