This repository has been archived on 2020-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
dokku-ansible-playbook/dependencies

17 lines
382 B
Plaintext
Raw Permalink Normal View History

2020-03-19 00:13:54 +00:00
#!/usr/bin/env bash
2020-03-19 00:43:41 +00:00
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
2020-03-19 00:13:54 +00:00
2020-03-19 22:45:06 +00:00
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
2020-03-19 00:13:54 +00:00
2020-03-19 22:45:06 +00:00
dokku-ansible-playbook-dependencies() {
export DEBIAN_FRONTEND=noninteractive
if ! command -v "ansible" &>/dev/null; then
dokku_col_log_info1_quiet "installing ansible"
apt install -qq -y ansible
fi
}
dokku-ansible-playbook-dependencies "$@"