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