From 51c14575f4ec038613b828b267f6dc2fe0a2632d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 20 Mar 2020 22:49:39 +0100 Subject: [PATCH] Copy modules into place --- functions | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions b/functions index 9642e20..08c68e3 100755 --- a/functions +++ b/functions @@ -17,8 +17,6 @@ function run_playbook() { validate_dependencies - pushd "$DOKKU_LIB_ROOT/data/ansible/$APP" >/dev/null - if [[ ! -f "$play_path" ]]; then dokku_col_log_info1_quiet "$play_path not found or executable bit not set" exit 0 @@ -29,8 +27,10 @@ function run_playbook() { ansible-galaxy install --force --role-file "$requirements" fi + dokku_col_log_info1_quiet "Copying library modules into place" + mkdir -p "$DOKKU_ROOT/.ansible/plugins/modules" + cp -R "$DOKKU_ROOT/.ansible/*/library/*" "$DOKKU_ROOT/.ansible/plugins/modules" + dokku_col_log_info1_quiet "$play_path file found" ansible-playbook --inventory "$(hostname)", --connection local "$play_path" - - popd >/dev/null }