From ac4642ecadb5c52108d6822cca9222188de6e500 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 23 May 2022 21:31:46 +0200 Subject: [PATCH] moved from multiple limits to multiple playbooks --- deploy.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/deploy.sh b/deploy.sh index dfb05bd..e0a90f9 100755 --- a/deploy.sh +++ b/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}