sw_nextcloud

NextCloud

Ansible Role - NextCloud Dockerized

Ansible Role to deploy dockerized NextCloud on a linux server.

Buy me a coffee

Molecule Test Status YamlLint Test Status PyLint Test Status Ansible-Lint Test Status Ansible Galaxy

Molecule Logs: Short, Full

Tested:

  • Debian 12

Install

# latest
ansible-galaxy role install git+https://github.com/ansibleguy/sw_nextcloud

# from galaxy
ansible-galaxy install ansibleguy.sw_nextcloud

# or to custom role-path
ansible-galaxy install ansibleguy.sw_nextcloud --roles-path ./roles

# install dependencies
ansible-galaxy install -r requirements.yml

Usage

You want a simple Ansible GUI? Check-out my Ansible WebUI

Config

Minimum example:

nextcloud:
  hostnames: ['nextcloud.template.ansibleguy.net']

Define the nextcloud dictionary as needed.

nextcloud:
  hostnames: ['nextcloud.template.ansibleguy.net']
  admin:
    pwd: !vault |
      ...
  db:
    app_pwd: !vault |
      ...
    root_pwd: !vault |
      ...

You might want to use 'ansible-vault' to encrypt your passwords:

ansible-vault encrypt_string

Execution

Run the playbook:

ansible-playbook -K -D -i inventory/hosts.yml playbook.yml --ask-vault-pass

There are also some useful tags available:

  • config
  • webserver
  • docker

Functionality

  • Package installation

    • Ansible dependencies (minimal)
    • Docker server and client
    • Nginx if webserver is managed
  • Configuration

    • Default config:

      • Using MariaDB database
    • Default opt-ins:

      • Auto-Update Job
      • Managing Webserver => see: THIS Role

Info

  • Note: Most of the role's functionality can be opted in or out.

    For all available options - see the default-config located in the main defaults-file!

  • Note: this role currently only supports debian-based systems

  • Info: The machine running NextCloud should AT LEAST have 4GB of RAM to run somewhat OK.

About

Role to install NextCloud on a linux server

Install
ansible-galaxy install ansibleguy/sw_nextcloud
GitHub repository
License
other
Downloads
1612
Owner
[email protected] | GPG: https://badges.ansibleguy.net/public.gpg