---
- name: β« Bring existing Nextcloud data up to the pinned major
include_tasks: utils/major_upgrade.yml
- name: πΏ Flush handlers so Nextcloud container is restarted and ready
meta: flush_handlers
- name: π Resolve the Nextcloud hosting node and container id
include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/swarm/resolve_host_cid.yml') }}"
vars:
resolve_service_key: "{{ NEXTCLOUD_SERVICE }}"
resolve_output_prefix: NEXTCLOUD
resolve_compose_cid: "{{ NEXTCLOUD_CONTAINER_ADDRESS }}"
- name: π§ Setup config.php
include_tasks:
file: 02_manager_ops/01_config.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
- name: β³ Wait for Redis
include_tasks: 02_manager_ops/02_redis.yml
- name: π Update\Upgrade Nextcloud
include_tasks:
file: 02_manager_ops/03_upgrade.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
- name: π Re-resolve the hosting node after the upgrade
include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/swarm/resolve_host_cid.yml') }}"
vars:
resolve_service_key: "{{ NEXTCLOUD_SERVICE }}"
resolve_output_prefix: NEXTCLOUD
resolve_compose_cid: "{{ NEXTCLOUD_CONTAINER_ADDRESS }}"
- name: π€ Setup the administrator account
include_tasks:
file: 02_manager_ops/04_admin.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
- name: βοΈ Apply the system configuration
include_tasks:
file: 02_manager_ops/05_system_config.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
- name: π§ Setup Nextcloud Plugins
include_tasks:
file: 02_manager_ops/06_plugin.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
when: NEXTCLOUD_PLUGINS_ENABLED | bool
- name: π§ Reconcile administrator identities after plugin setup
include_tasks:
file: 02_manager_ops/07_admin_identities.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
- name: π¨ Apply the corporate design
include_tasks:
file: 02_manager_ops/08_design.yml
apply:
delegate_to: "{{ NEXTCLOUD_HOST_NODE }}"
when: NEXTCLOUD_DESIGN_ENABLED | bool
- name: "π Provision the MCP server surface"
include_tasks: utils/mcp.yml
when: NEXTCLOUD_MCP_ENABLED | bool