]> git.phdru.name Git - ansible.git/blobdiff - playbooks/run-roles
Feat(run-roles): Run a list of roles separated by comma
[ansible.git] / playbooks / run-roles
diff --git a/playbooks/run-roles b/playbooks/run-roles
new file mode 100755 (executable)
index 0000000..4251ac1
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+if [ -z "$1" ]; then
+   echo "Usage: $0 role1[,role2,...] [...params...]" >&2
+   exit 1
+fi
+
+roles="$1"
+shift
+
+cd "`dirname \"$0\"`" &&
+exec ansible-playbook run-roles.yml "$@" -e roles="$roles"