mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 18:03:40 -05:00
Initial commit
This commit is contained in:
13
templates/Tdarr_Server_Config.json.j2
Normal file
13
templates/Tdarr_Server_Config.json.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"serverPort": "{{ tdarr_server_port }}",
|
||||
"webUIPort": "{{ tdarr_webui_port }}",
|
||||
"serverIP": "{% for h in groups['lan'] if hostvars[h].is_tdarr_server == true %}{{ hostvars[h].ansible_host }}{% endfor %}",
|
||||
{% if ansible_os_family == 'Darwin' and ansible_architecture == 'arm64' -%}
|
||||
"handbrakePath": "/opt/homebrew/bin/HandBrakeCLI",
|
||||
"ffmpegPath": "/opt/homebrew/bin/ffmpeg",
|
||||
{% else %}
|
||||
"handbrakePath": "/usr/local/bin/HandBrakeCLI",
|
||||
"ffmpegPath": "/usr/local/bin/ffmpeg"
|
||||
{%- endif %}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user