moved from multiple limits to multiple playbooks

This commit is contained in:
Bryan Joshua Pedini 2022-05-23 21:31:46 +02:00
parent 580166b1f6
commit ac4642ecad
1 changed files with 3 additions and 7 deletions

View File

@ -1,14 +1,10 @@
#!/usr/bin/env bash
set -e
PLAYBOOK=$1
LIMIT=""
LIMIT=$1
shift
for SERVICE in $@; do
LIMIT="${LIMIT} --limit $1"
for PLAYBOOK in $@; do
ansible-playbook ${LIMIT} ${PLAYBOOK}
shift
done
LIMIT=$(echo "${LIMIT}" | sed 's/^ //')
ansible-playbook ${LIMIT} ${PLAYBOOK}