Export ANSIBLE_ROLES_PATH

This commit is contained in:
Luke Murphy 2020-03-20 00:15:45 +01:00
parent c7881d896f
commit 6f5cc99a72
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 6 additions and 3 deletions

View File

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