Skip to content

be-cloud-be/ansible-role-dokku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role for Dokku

Setup Dokku.

Requirements

  • Debian
  • Ubuntu

Role Variables

  • dokku_vhost_enable: Enable vhost-based deployments. Value of debconf dokku/vhost_enable. (boolean)
  • dokku_web_config: Enable the web-based config page. Value of debconf dokku/web_config. (boolean)
  • dokku_hostname: Hostname or IP for server. Value of debconf dokku/hostname. (string)
  • dokku_skip_key_file: Skip key file requirement. Value of debconf dokku/skip_key_file. (boolean)
  • dokku_key_file: SSH public key file for initial user. Value of debconf dokku/key_file. (string)

Note: boolean value should be "true" or "false" in string of yaml. If use true (yes), false (no) or something similar, ansible reports changed every provision.

  • dokku_plugin: Install plugin.

Dependencies

  • docker

Example Playbook

Example:

- hosts: servers
  become: yes
  roles:
     - znz.docker
     - znz.dokku

Another example:

- hosts: all
  become: yes
  roles:
  - znz.docker
    docker_ce_channel: "stable"
  - role: znz.dokku
    dokku_vhost_enable: "true"
    dokku_web_config: "false"
    dokku_hostname: "127.0.0.1.xip.io"
    dokku_skip_key_file: "true"
    dokku_plugin:
    - name: letsencrypt
      url: https://github.com/dokku/dokku-letsencrypt.git
    - name: maintenance
      url: https://github.com/dokku/dokku-maintenance.git
    - name: postgres
      url: https://github.com/dokku/dokku-postgres.git

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published