moved from multiple limits to multiple playbooks
This commit is contained in:
parent
580166b1f6
commit
ac4642ecad
10
deploy.sh
10
deploy.sh
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue