Go to file
2023-08-20 05:56:08 +00:00
defaults Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
docs Update podman docs to include current workarounds. 2023-08-10 17:13:34 -07:00
meta Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
tasks Removed extra service unit step. Systemd seems to not need the extra help to correct track the status of the container, and it was often preventing the container started. 2023-08-20 05:56:08 +00:00
templates Add notes and examples for nginx and ugprades. 2023-07-15 06:30:22 -07:00
tests Minor cleanup. 2023-07-18 15:52:37 -07:00
.gitignore Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
README.md Systemd note. 2023-07-15 07:05:27 -07:00

Ansible Role: nextcloud

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.

Requirements

Dependencies

Role Variables

See the role defaults and the Nextcloud environment variable documentation. For a working example, see this homelab stack.

Example Playbook

- 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

Systemd

systemctl --user status container-nextcloud.service

Upgrades

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

Backups

See the postgres example.

Monitoring

TODO

Resources

Thanks

Based on the original role created by Joerg Kastning. Thank you!