ansible_role_dokku_nextcloud

Ansible Dokku NextCloud

Ansible Role

Deploy NextCloud on Debian servers using Dokku. This role is powered by dokku/ansible-dokku role.

Requirements

  • A working Debian sever with ssh access
  • A user with sudo privileges
  • A local machine with ansible installed

Role variables

Important: see the dokku_bot.ansible_dokku variables first.

app_name

  • default: nextcloud
  • type: string
  • description: The app name

pg_service_name

  • default: pg_{{ app_name }}
  • type: string
  • description: PostgreSQL service name. By default, its name is the app name with a prefix pg_.

redis_service_name

  • default: redis_{{ app_name }}
  • type: string
  • description: Redis service name. By default, its name is the app name with a prefix redis_.

app_domain

  • default: nextcloud.example.com
  • type: string
  • description: App domain

admin_email

  • default: [email protected]
  • type: string
  • description: Admin e-mail, which will be used to configure Let's Encrypt

data_path

  • default: /var/lib/dokku/data/storage/{{ app_name }}
  • type: string
  • description: Path to store app's data

app_docroot

  • default: /var/www/html/
  • type: string
  • description: Webserver's document root

Example Playbooks

---
- hosts: all
  roles:
    - ansible-role-dokku-nextcloud
  vars:
    dokku_users:
      - name: "John Doe"
        username: johndoe
        ssh_key: "{{lookup('file', '~/.ssh/id_rsa.pub')}}"
    dokku_plugins:
      - name: postgres
        url: https://github.com/dokku/dokku-postgres.git
      - name: redis
        url: https://github.com/dokku/dokku-redis.git
      - name: letsencrypt
        url: https://github.com/dokku/dokku-letsencrypt.git
    dokku_hostname: example.com
    app_name: nextcloud
    app_domain: nextcloud.example.com
    admin_email: [email protected]

License

GNU GPL v3.0

About

This role helps to deploy NextCloud using Dokku on Debian

Install
ansible-galaxy install leandroramos/ansible-role-dokku-nextcloud
GitHub repository
License
gpl-3.0
Downloads
35
Owner
I'm a person. I'm not my job.