From d288ee3893af7e77a734088f14f27de14131a5d5 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 19 Dec 2024 10:00:02 +0100 Subject: [PATCH] Fix wrong path to the inventory directory (#116) 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 e333bef..d9ffe98 100755 --- a/files/scripts/run.sh +++ b/files/scripts/run.sh @@ -26,8 +26,8 @@ fi export ANSIBLE_INVENTORY=$ANSIBLE_DIRECTORY/inventory/hosts.yml export ANSIBLE_CONFIG=$ENVIRONMENTS_DIRECTORY/ansible.cfg -if [[ -e /inventory/ansible/ansible.cfg ]]; then - export ANSIBLE_CONFIG=/inventory/ansible/ansible.cfg +if [[ -e $ANSIBLE_DIRECTORY/inventory/ansible/ansible.cfg ]]; then + export ANSIBLE_CONFIG=$ANSIBLE_DIRECTORY/inventory/ansible/ansible.cfg elif [[ -e $ENVIRONMENTS_DIRECTORY/$ENVIRONMENT/ansible.cfg ]]; then export ANSIBLE_CONFIG=$ENVIRONMENTS_DIRECTORY/$ENVIRONMENT/ansible.cfg fi