Copy modules into place

This commit is contained in:
Luke Murphy 2020-03-20 22:49:39 +01:00
parent 353b3dfb48
commit 51c14575f4
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 4 deletions

View File

@ -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
}