X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Frun-roles;fp=playbooks%2Frun-roles;h=4251ac13e382f5accb17c8a17948ff0ea614a4b0;hb=e041bacf66ba35783e080ae8cfd0c2ef946b9289;hp=0000000000000000000000000000000000000000;hpb=e3995dacde4c3b074bd8ac52c65f3d8027c13170;p=ansible.git diff --git a/playbooks/run-roles b/playbooks/run-roles new file mode 100755 index 0000000..4251ac1 --- /dev/null +++ b/playbooks/run-roles @@ -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"