Bootstrap this plugin

This commit is contained in:
Luke Murphy 2020-03-19 01:13:54 +01:00
commit d4cf9180df
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 36 additions and 0 deletions

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# dokku-ansible-playbook
Run ansible playbooks during deployment.
## Requirements
* dokku 0.19.13+
* Debian based system (uses `apt` package manager)
## Installation
```shell
$ dokku plugin:install https://github.com/decentral1se/dokku-ansible-playbook.git
```
## Usage
All files must be placed within the `.ansible` folder of your git repository.
* `requirements.yml`: what role dependencies to download before running your plays
* `prepare.yml`: the play to run before the application is built

11
dependencies Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
export DEBIAN_FRONTEND=noninteractive
if ! command -v "ansible-playbook" &>/dev/null; then
apt install --force-yes -qq -y ansible
fi

4
plugin.toml Normal file
View File

@ -0,0 +1,4 @@
[plugin]
description="Run ansible playbooks during deployment"
version="0.0.1"
[plugin.config]