This Ansible Role installs a rootless Nextcloud container using Podman. It is intended to be composed with separate roles for Podman, database, and web proxy.
- mariadb (optional)
- postgresql (optional)
- nginx_conf (optional)
See the role defaults and the Nextcloud environment variable documentation. For a working example, see this homelab stack.
- hosts: nextcloud
become: true
roles:
- role: nginxinc.nginx_core.nginx
- role: fauust.mariadb
- role: alvistack.podman
- role: bleetube.redis
- role: bleetube.nextcloud
become: false
tasks:
- import_tasks: nginx_conf.yml
systemctl --user status container-nextcloud.service
Configure nextcloud_version
.
ansible-playbook playbooks/nextcloud.yml --tags nextcloud
podman exec -it -u www-data nextcloud /var/www/html/occ app:update --all
podman exec -it -u www-data nextcloud /var/www/html/occ upgrade
See the postgres example.
TODO
- nextcloud.admin collection
- Apps
- Admin Manual
- User Manual
Based on the original role created by Joerg Kastning. Thank you!