This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-07 14:10:31 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-04-07 13:43:53 +00:00
|
|
|
|
2020-04-07 14:10:31 +00:00
|
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
2020-04-07 13:43:53 +00:00
|
|
|
|
2020-04-07 14:10:31 +00:00
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
2020-04-07 13:43:53 +00:00
|
|
|
|
2020-04-07 14:10:31 +00:00
|
|
|
dokku-ansible-deploy-dependencies() {
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
2020-04-07 13:43:53 +00:00
|
|
|
|
2020-04-07 14:10:31 +00:00
|
|
|
if ! command -v "ansible" &>/dev/null; then
|
|
|
|
dokku_col_log_info1_quiet "installing ansible"
|
|
|
|
apt install -qq -y ansible
|
|
|
|
fi
|
|
|
|
}
|
2020-04-07 13:43:53 +00:00
|
|
|
|
2020-04-07 14:10:31 +00:00
|
|
|
dokku-ansible-deploy-dependencies "$@"
|