Created: 2026-01-23
Add automated playbook to safely upgrade Nextcloud from v30 (EOL) to v32
through staged upgrades, respecting Nextcloud's no-version-skip policy.
Features:
- Pre-upgrade validation (version, disk space, maintenance mode)
- Automatic full backup (database + volumes)
- Staged upgrades: v30 → v31 → v32
- Per-stage app disabling/enabling
- Database migrations (indices, bigint conversion)
- Post-upgrade validation and system checks
- Rollback instructions in case of failure
- Updates docker-compose.yml to 'latest' tag after success
Files:
- playbooks/260123-upgrade-nextcloud.yml (main playbook)
- playbooks/260123-upgrade-nextcloud-stage.yml (stage tasks)
Usage:
cd ansible/
HCLOUD_TOKEN="..." ansible-playbook -i hcloud.yml \
playbooks/260123-upgrade-nextcloud.yml --limit kikker
Safety:
- Creates timestamped backup before any changes
- Stops containers during volume backup
- Verifies version after each stage
- Provides rollback commands in output
Ready to upgrade kikker from v30.0.17 to v32.x
🤖 Generated with Claude Code (https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| 260123-upgrade-nextcloud-stage.yml | ||
| 260123-upgrade-nextcloud.yml | ||
| cleanup.yml | ||
| configure-email.yml | ||
| deploy.yml | ||
| fix-private-network.yml | ||
| setup-edge.yml | ||
| setup.yml | ||
| update-containers.yml | ||
| update-enrollment-flow.yml | ||