2024-06-25, 08:00 PM
(2024-06-19, 03:12 PM)TheDreadPirate Wrote:(2024-06-19, 01:38 PM)chuanqi Wrote: Thank you! It's probably not that simple/possible to do this if you're running Jellyfin inside a Docker Container right?
I don't see can't also handle Docker. When you setup Jellyfin in Docker you should be mounting a host path for /config and Ansible would be modifying those. Having Ansible modify config files would not be different. Just in a different location.
Correct, using volume mounts should take care of any file related actions.
As for managing the docker containers using Ansible, it is certainly doable, but not something I've delved into myself. You would need to install the docker modules to Ansible using the following command:
Code:
ansible-galaxy collection install community.docker
Then your host machine needs to have the Docker SDK for Python installed.
Documentation for all of this can be found here: https://docs.ansible.com/ansible/latest/...guide.html
If it were me, I would create a task workflow like this:
Stop container > Pull latest jellyfin docker image > Start container > Stop container > Any steps to modify Jellyfin > Start container
Hope that helps.
JF Server Specs:
- CPU: Intel Core i5-11400
- Motherboard: ASRock H510M-ITX/ac
- RAM: G.Skill 16GB (2x8GB) Value 2666MHz CL19 DDR4
- PSU: Silverstone SX300-B 80+ Bronze SFX
- OS: Debian 12
- JF: 10.9.11