Post-Tyranny-Tech-Infrastru.../ansible/roles/zitadel/tasks/clean.yml
Pieter 48ef4da920 Fix Zitadel deployment by removing FirstInstance variables
- Remove all ZITADEL_FIRSTINSTANCE_* environment variables
- Fixes migration error: duplicate key constraint violation
- Root cause: Bug in Zitadel v2.63.7 FirstInstance migration
- Workaround: Complete initial setup via web UI
- Upstream issue: https://github.com/zitadel/zitadel/issues/8791

Changes:
- Clean up obsolete documentation (OIDC_AUTOMATION.md, SETUP_GUIDE.md, COLLABORA_SETUP.md)
- Add PROJECT_REFERENCE.md for essential configuration info
- Add force recreate functionality with clean database volumes
- Update bootstrap instructions for web UI setup
- Document one-time manual setup requirement for OIDC automation

Zitadel now deploys successfully and is accessible at:
https://zitadel.test.vrije.cloud

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-06 16:43:57 +01:00

17 lines
365 B
YAML

---
# Clean Zitadel database and volumes
- name: Stop Zitadel containers with volumes
shell: |
cd {{ zitadel_config_dir }} && docker compose down -v
ignore_errors: yes
changed_when: false
- name: Remove bootstrap marker
file:
path: "{{ zitadel_config_dir }}/.bootstrap_complete"
state: absent
- name: Wait for cleanup
pause:
seconds: 5