diff --git a/functions b/functions index 2e8b80d..5dfb9bd 100755 --- a/functions +++ b/functions @@ -16,14 +16,17 @@ function run_playbook() { if [[ -f "$requirements" ]]; then dokku_col_log_info1_quiet "$requirements file found" - ansible-galaxy install \ + ansible-galaxy + install \ -vvv --force \ - --roles-path "$DOKKU_LIB_ROOT/data/ansible/$APP" \ + --roles-path "$DOKKU_LIB_ROOT/data/ansible/$APP/roles" \ --role-file "$requirements" fi + export ANSIBLE_ROLES_PATH="$DOKKU_LIB_ROOT/data/ansible/$APP/roles/" + dokku_col_log_info1_quiet "$play_path file found" - ANSIBLE_ROLES_PATH="$DOKKU_LIB_ROOT/data/ansible/$APP" ansible-playbook \ + ansible-playbook \ --inventory "$(hostname)", \ --connection local \ "$play_path"