ansibleguy.sw_nextcloud

NextCloud

Ansible Role - NextCloud Dockerized

This Ansible role helps you set up NextCloud using Docker 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 on:

  • Debian 12

Installation

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

# to install from Ansible Galaxy
ansible-galaxy install ansibleguy.sw_nextcloud

# or to install it in a custom directory
ansible-galaxy install ansibleguy.sw_nextcloud --roles-path ./roles

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

Usage

If you need a simple Ansible interface, check out my Ansible WebUI.

Configuration

Here is a basic example:

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

You can customize the NextCloud settings as needed.

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

Use 'ansible-vault' to encrypt your passwords:

ansible-vault encrypt_string

Running the Playbook

Execute the playbook with this command:

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

You can also use these helpful tags:

  • config
  • webserver
  • docker

Features

  • Package Installation:

    • Basic Ansible dependencies
    • Docker server and client
    • Nginx if you're managing a web server
  • Configuration:

    • Default Configuration:

      • Uses MariaDB as the database
    • Default Options:

      • Automatic Update Job
      • Web server management (see: THIS Role)

Notes

  • Note: You can enable or disable most features of this role.

    Check all available options in the default config file located here!

  • Note: This role currently only works on Debian-based systems.

  • Info: Your machine should have at least 4GB of RAM to run NextCloud properly.

Informazioni sul progetto

Role to install NextCloud on a linux server

Installa
ansible-galaxy install ansibleguy.sw_nextcloud
Licenza
other
Download
1.9k
Proprietario
[email protected] | GPG: https://badges.ansibleguy.net/public.gpg