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 #!/usr/bin/env bash
set -e set -e
PLAYBOOK=$1 LIMIT=$1
LIMIT=""
shift shift
for SERVICE in $@; do for PLAYBOOK in $@; do
LIMIT="${LIMIT} --limit $1" ansible-playbook ${LIMIT} ${PLAYBOOK}
shift shift
done done
LIMIT=$(echo "${LIMIT}" | sed 's/^ //')
ansible-playbook ${LIMIT} ${PLAYBOOK}