Bootstrap this plugin
This commit is contained in:
commit
d4cf9180df
21
README.md
Normal file
21
README.md
Normal 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
11
dependencies
Executable 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
4
plugin.toml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[plugin]
|
||||||
|
description="Run ansible playbooks during deployment"
|
||||||
|
version="0.0.1"
|
||||||
|
[plugin.config]
|
Reference in New Issue
Block a user