Go to file
2023-07-14 07:56:23 -07:00
defaults Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
docs Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
meta Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
tasks Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
tests Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
.gitignore Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -07:00
README.md Initialize repo for Nextcloud container role. 2023-07-14 07:56:23 -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 and any database backend such as PostgreSQL or Mariadb.

Requirements

Dependencies

Role Variables

nextcloud_config.NEXTCLOUD_ADMIN_USER: adminotaur
nextcloud_config.NEXTCLOUD_ADMIN_PASSWORD: "{{ lookup('ansible.builtin.env', 'NEXTCLOUD_ADMIN') }}"
nextcloud_config.MYSQL_PASSWORD: "{{ lookup('ansible.builtin.env', 'NEXTCLOUD_MARIADB') }}"

See the role defaults and the Nextcloud environment variable documentation.

Example Playbook

- hosts: nextcloud
  roles:
    - role: fauust.mariadb
      become: true
    - role: alvistack.podman
      become: true
    - role: bleetube.nextcloud

Example Deployment

export NEXTCLOUD_ADMIN=$(pass generate -n NEXTCLOUD_ADMIN | tail -n1)
export NEXTCLOUD_MARIADB=$(pass generate -n NEXTCLOUD_MARIADB | tail -n1)
ansible-playbook playbooks/nextcloud.yml

Backups

TODO

Monitoring

TODO

Resources

Thanks

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