Export ANSIBLE_ROLES_PATH
This commit is contained in:
parent
c7881d896f
commit
6f5cc99a72
@ -16,14 +16,17 @@ function run_playbook() {
|
|||||||
|
|
||||||
if [[ -f "$requirements" ]]; then
|
if [[ -f "$requirements" ]]; then
|
||||||
dokku_col_log_info1_quiet "$requirements file found"
|
dokku_col_log_info1_quiet "$requirements file found"
|
||||||
ansible-galaxy install \
|
ansible-galaxy
|
||||||
|
install \
|
||||||
-vvv --force \
|
-vvv --force \
|
||||||
--roles-path "$DOKKU_LIB_ROOT/data/ansible/$APP" \
|
--roles-path "$DOKKU_LIB_ROOT/data/ansible/$APP/roles" \
|
||||||
--role-file "$requirements"
|
--role-file "$requirements"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export ANSIBLE_ROLES_PATH="$DOKKU_LIB_ROOT/data/ansible/$APP/roles/"
|
||||||
|
|
||||||
dokku_col_log_info1_quiet "$play_path file found"
|
dokku_col_log_info1_quiet "$play_path file found"
|
||||||
ANSIBLE_ROLES_PATH="$DOKKU_LIB_ROOT/data/ansible/$APP" ansible-playbook \
|
ansible-playbook \
|
||||||
--inventory "$(hostname)", \
|
--inventory "$(hostname)", \
|
||||||
--connection local \
|
--connection local \
|
||||||
"$play_path"
|
"$play_path"
|
||||||
|
Reference in New Issue
Block a user