Run ansible playbooks during deployment
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.
Go to file
Luke Murphy 12de0a96d8
Try to explain API further
2020-03-19 01:55:49 +01:00
LICENSE Another push to get this out the door 2020-03-19 01:43:41 +01:00
README.md Try to explain API further 2020-03-19 01:55:49 +01:00
create-app Add create-app hook 2020-03-19 01:50:14 +01:00
dependencies Another push to get this out the door 2020-03-19 01:43:41 +01:00
functions Another push to get this out the door 2020-03-19 01:43:41 +01:00
plugin.toml Bootstrap this plugin 2020-03-19 01:13:54 +01:00
post-deploy Another push to get this out the door 2020-03-19 01:43:41 +01:00
pre-deploy Another push to get this out the door 2020-03-19 01:43:41 +01:00

README.md

dokku-ansible-playbook

Run ansible playbooks during deployment.

Requirements

  • dokku 0.19.13+
  • Debian based system (uses apt package manager)

Installation

$ 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.

The following hooks are supported (add .yml to the hook name in .ansible):

  • pre-deploy
  • post-deploy
  • create-app

Example

.ansible/requirements.yml

---
- src: dokku_bot.ansible_dokku
  version: v2020.3.15

.ansible/create-app.yml

---
- hosts: all
  tasks:
    - name: Create foobar group
      group:
        name: foobar
        system: true
        state: present