Don't always force it
This commit is contained in:
parent
bc2f5a0e37
commit
58535c1ccc
|
@ -28,7 +28,6 @@ Notes:
|
||||||
|
|
||||||
* Everything is copied into `$DOKKU_LIB_ROOT/data/ansible/$APP` on the `post-extract` hook.
|
* Everything is copied into `$DOKKU_LIB_ROOT/data/ansible/$APP` on the `post-extract` hook.
|
||||||
* Dokku will make sure that your Ansible plays are run on the right hook against the Dokku server localhost.
|
* Dokku will make sure that your Ansible plays are run on the right hook against the Dokku server localhost.
|
||||||
* The `ansible-galaxy` install command is run with `--force` to ensure a clean slate on each hook execution.
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ 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 --force --role-file "$requirements"
|
ansible-galaxy install --role-file "$requirements"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dokku_col_log_info1_quiet "Copying library modules into place"
|
dokku_col_log_info1_quiet "Copying library modules into place"
|
||||||
|
|
Reference in New Issue