Comment on Homeserver Ansible Playbook
avidamoeba@lemmy.ca 8 months ago
If I read this correctly, Immich is setup entirely through Ansible, no docker compose. That’s fine, however if Immich changes something drastically in their setup topology, it’ll be more work for you to implement those changes. For services that use docker compose, you could use Ansible to deploy a compose file in a dir, say /opt/immich-docker
along with its requisite .env
and other files. Then setup running it via systemd. Then when you need to update it, it’s almost copy-paste from the upstream compose file into your Ansible repo.
pezhore@lemmy.ml 8 months ago
Heck, you could do a pre-stage play where you delegate to localhost an
ansible.builtin.get_url
to download the compose file before doing the rest.avidamoeba@lemmy.ca 8 months ago
I wouldn’t do that because I’d be inevitably picking up breaking changes without my knowledge that I’d have to fix after the fact. Unless you’re pulling from a tag I guess. Still storing along the playbook feels more robust.