ansible automation - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions) +--- Thread: ansible automation (/t-ansible-automation) Pages:
1
2
|
RE: ansible automation - Efficient_Good_5784 - 2024-08-19 What's your goal with trying to do all of this? If your goal is to "debloat" Jellyfin and bring it back to the basics, it's going to end up the same way after you spend days/weeks of 24/7 CPU & GPU utilization rebuilding the metadata such as Trickplay files. And are you planning on using the backup on different machines? Jellyfin can't automatically choose the correct HWA settings for the machine it's installed on, so you'll have to write a script to automate that for yourself as one machine's correct settings will be the wrong ones on another. Same concept for adding blank libraries. You need to make sure the library paths remain absolutely the same if you're going to be reusing that. Installing Jellyfin from scratch is like a 3 to 5 minute task. Configuring it after that is like another 5 minute task once you get familiar with the software. RE: ansible automation - olivia Barker - 2024-08-20 i was looking at the jellyfin api and i saw this section of it https://api.jellyfin.org/#tag/Startup i think i can use this to do what i want then i can add libaries using the libarystructure routes. It still doesnt fix things like watch time but it would let me automate the setup like i wanted i used dev tools to copy the request and parameters sent to api via the web client. im slightly confused as the startup ommands still require and api key. i am trying to get an api key using the command "curl -L -v -X POST -H "Accept: application/json" -d "app=test" http://127.0.0.1:8096/Auth/Keys" this is so i can get the api key required for the other requests however im getting a 401 unautharised
i tried pulling the authorization header from the setup wizard's requests but it sats i have a malformed input somewhere i tried escaping the " inside the header but i still get the same thing RE: ansible automation - olivia Barker - 2024-08-20 (2024-08-19, 03:55 PM)Efficient_Good_5784 Wrote: What's your goal with trying to do all of this?my goal is to have ansible automatically get jellyfin to state where it has my user and 2 libaries one for movies and one for shows. this is so i can then automate jellyseer to have a jellyfin account attached. all i wanted to do was effectively complete the setup wizard without using the gui then that's all the configuring i should need to do. i don't plan on using the backup on a different machine that was just an idea to get to my goal of having jellyfin start and be past the setup script. The library paths would always be the same as its controlled through ansible. installing jellyfin is realy easy and im using docker compose for it but once its installed configuring it without user interaction is turning out to be quite difficult. sorry for any confusion caused. RE: ansible automation - olivia Barker - 2024-08-23 i think i have a solution using this gist https://gist.github.com/aslafy-z/dce9fd98bbe42f21095eb231687ae4f5 and the api responses i got from the setup wizard i think i can do it. I cant test right now but this should be exactly what i need |