GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bene64/nextcloud: Ansible playbook to install nextcloud, php, nginx, mariadb or postgres, redis-server, onlyoffice or collabora office

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

222 Commits
222 Commits

Folders and files

NameName
Last commit message
Last commit date
cloud-stuff
cloud-stuff
 
 
files
files
 
 
group_vars
group_vars
 
 
roles
roles
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
ansible.cfg
ansible.cfg
 
 
collabora.yml
collabora.yml
 
 
inventory
inventory
 
 
nextcloud.yml
nextcloud.yml
 
 
only_office.yml
only_office.yml
 
 
prepare_system.sh
prepare_system.sh
 
 

Repository files navigation

Nextcloud 15

Ansible Playbook to install

  • Nextcloud 15 - https://nextcloud.com/
  • nginx 1.15 - https://nginx.org/
  • PHP 7.x - http://www.php.net/
  • MariaDB 10 - https://mariadb.org/ or PostgreSQL 10 https://www.postgresql.org/ (only Ubuntu right now)
  • redis - https://redis.io/
  • restic backup - https://restic.readthedocs.io
  • Nextcloud Talk
  • Collabora Online https://www.collaboraoffice.com/ or
  • Onlyoffice https://www.onlyoffice.com

In less than 20 minutes.

Most of the settings are recommentations from C. Rieger

Visit his page for all details: https://www.c-rieger.de/

Warning: Your existing nginx/php/mariadb setup will be over written. Up to now I tested this only on newly installed AWS EC2 Ubuntu, Dedian and CentOS machines. So backup of your existing configuration is a good advice.

Requirements

Ubuntu 16.04, Ubuntu 18.04, CentOS 7 or Debian 9

Not yet tested with other versions and flavours of Linux.

Install

# clone this repo
git clone https://github.com/ReinerNippes/nextcloud

# change to nextcloud13 directory
cd nextcloud

# install ansible and needed python modules
./prepare_system.sh

# edit variables
vim inventory

# run playbook
ansible-playbook nextcloud.yml

Login to your nextcloud web site https://<fqdn>

Users and passwords have been set according to the entries in the inventory if defiend there. Otherwise the admin password will be displayed at the end of playbook. Additional you can find the credential_store = /etc/nextcloud

Role Variables

All variables are defined in inventory file.

# Server domain name
# Default is the fqdn of the machine
# fqdn       = nc.example.org

# selfsigned certificate as default
ssl_certificate_type  = 'selfsigned'

# Letsencrypt or selfsigned certificate
# ssl_certificate_type  = 'letsencrypt'


# Your email adresse for letsencrypt
# cert_email = [email protected]

# receive a certificate from staging
# uncomment if you want to use letsencrypt staging environment
# cert_stage = '--staging'

# Your dns resolver (nginx reverse ip lookup)
# e.g. your fritz.box ; default is ccc 213.73.91.35 (germany) - 216.87.84.211 OpenNIC (usa)
nginx_resolver       = '213.73.91.35 216.87.84.211 valid=30s'

#
# Nextcloud varibales

# data dir
nc_datadir           = /var/nc-data

# admin user
nc_admin             = 'admin'
nc_passwd            = ''             # leave empty to generate random password

# database settings
#nc_db_type          = 'mysql'        # (MariaDB)
nc_db_type           = 'pgsql'        # (PostgreSQL)
nc_db_host           = 'localhost'
nc_db                = 'nextcloud'
nc_db_user           = 'nextcloud'
nc_db_passwd         = ''             # leave empty to generate random password
nc_db_prefix         = 'oc_'

# Nextcloud mail setup
nc_configure_mail    = false
nc_mail_from         =
nc_mail_smtpmode     = smtp
nc_mail_smtpauthtype = LOGIN
nc_mail_domain       =
nc_mail_smtpname     =
nc_mail_smtpsecure   = tls
nc_mail_smtpauth     = 1
nc_mail_smtphost     =
nc_mail_smtpport     = 587
nc_mail_smtpname     =
nc_mail_smtppwd      =

# php Version
php_version          = '7.3'

# Install turn server for Nextcloud Talk
talk_install         = false

# Allways get the latest version of Nextcloud
next_archive         = https://download.nextcloud.com/server/releases/latest.tar.bz2

# Install restic backup tool if backup_folder is not empty
# more info about restic: https://restic.readthedocs.io/en/latest/
backup_folder        = '' # e.g. /var/nc-backup
# crontab settings restic for restic
backup_day           = *
backup_hour          = 4
backup_minute        = 0

# Install Collabra Online
# more info about collabora office: https://www.collaboraoffice.com/
install_collabora     = false

# Install Online Office
# more info about onlyoffice office: https://www.onlyoffice.com
install_onlyoffice    = false

#
# change dhparam numbits if generating takes to long
#dhparam_numbits = 1024

#
# defaults path of your generated credentials (e.g. database, talk, onlyoffice)
credential_store      = /etc/nextcloud

About

Ansible playbook to install nextcloud, php, nginx, mariadb or postgres, redis-server, onlyoffice or collabora office

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.