From 7fab749a3522351e8e7c6bde9cde57cb6a0cc09b Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 5 Jul 2024 22:06:55 +0200 Subject: [PATCH] Fix play location in run.sh script (#36) Signed-off-by: Christian Berendt --- files/scripts/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/scripts/run.sh b/files/scripts/run.sh index 38acd61..a6ba778 100755 --- a/files/scripts/run.sh +++ b/files/scripts/run.sh @@ -59,7 +59,7 @@ if [[ -e $ENVIRONMENTS_DIRECTORY/$ENVIRONMENT/playbook-$service.yml ]]; then -e @configuration.yml \ "$@" \ playbook-$service.yml -elif [[ -e $ANSIBLE_DIRECTORY/$ENVIRONMENT/$service.yml ]]; then +if [[ -e $ANSIBLE_DIRECTORY/$ENVIRONMENT-$service.yml ]]; then ansible-playbook \ --vault-password-file $VAULT \ -e @$ENVIRONMENTS_DIRECTORY/configuration.yml \ @@ -68,7 +68,7 @@ elif [[ -e $ANSIBLE_DIRECTORY/$ENVIRONMENT/$service.yml ]]; then -e @images.yml \ -e @configuration.yml \ "$@" \ - $ANSIBLE_DIRECTORY/$ENVIRONMENT/$service.yml + $ANSIBLE_DIRECTORY/$ENVIRONMENT-$service.yml else echo "ERROR: service $service in environment $ENVIRONMENT not available" exit 1