Remove that hook
This commit is contained in:
parent
9966cb99c5
commit
9ae81edebc
13
README.md
13
README.md
@ -5,29 +5,30 @@ Run ansible playbooks during deployment.
|
|||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* dokku 0.19.13+
|
* dokku 0.19.13+
|
||||||
* Debian based system (uses `apt` package manager)
|
* [dokku-supply-config](https://github.com/dokku-community/dokku-supply-config)
|
||||||
|
* Debian based system (uses `apt` package manager for dependencies)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
$ dokku plugin:install https://github.com/josegonzalez/dokku-supply-config.git
|
||||||
$ dokku plugin:install https://github.com/decentral1se/dokku-ansible-playbook.git
|
$ dokku plugin:install https://github.com/decentral1se/dokku-ansible-playbook.git
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
All files must be placed within the `.ansible` folder of your git repository.
|
All files must be placed within the `.dokku/ansible` folder of your git repository.
|
||||||
|
|
||||||
* `requirements.yml`: what role dependencies to download before running your plays.
|
* `requirements.yml`: what role dependencies to download before running your plays.
|
||||||
|
|
||||||
The following hooks are supported (add `.yml` to the hook name in `.ansible`):
|
The following hooks are supported (add `.yml` to the hook name in `.dokku/ansible`):
|
||||||
|
|
||||||
* `pre-deploy`
|
* `pre-deploy`
|
||||||
* `post-deploy`
|
* `post-deploy`
|
||||||
* `create-app`
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
### .ansible/requirements.yml
|
### .dokku/ansible/requirements.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
@ -35,7 +36,7 @@ The following hooks are supported (add `.yml` to the hook name in `.ansible`):
|
|||||||
version: v2020.3.15
|
version: v2020.3.15
|
||||||
```
|
```
|
||||||
|
|
||||||
### .ansible/create-app.yml
|
### .dokku/ansible/pre-deploy.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
---
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
||||||
|
|
||||||
PLAYBBOOK=".ansible/create-app.yml"
|
|
||||||
|
|
||||||
echo "-----> Running create-app ansible playbook"
|
|
||||||
. $(dirname "$0")/functions
|
|
||||||
run_playbook "$PLAYBOOK"
|
|
Reference in New Issue
Block a user