diff --git a/roles/youtubedlmaterial/defaults/main.yml b/roles/youtubedlmaterial/defaults/main.yml index d62a73b00c..e1c1c1d0d8 100644 --- a/roles/youtubedlmaterial/defaults/main.yml +++ b/roles/youtubedlmaterial/defaults/main.yml @@ -9,6 +9,10 @@ youtubedlmaterial_dl_audio_directory: "{{ downloads_root }}/youtube/audio" youtubedlmaterial_dl_video_directory: "{{ downloads_root }}/youtube/video" youtubedlmaterial_dl_subscriptions_directory: "{{ downloads_root }}/youtube/subscriptions" +# uid / gid +youtubedlmaterial_user_id: "1000" +youtubedlmaterial_group_id: "1000" + # network youtubedlmaterial_hostname: "youtubedlmaterial" youtubedlmaterial_port_http: "8998" diff --git a/roles/youtubedlmaterial/tasks/main.yml b/roles/youtubedlmaterial/tasks/main.yml index e65ae0c0cf..b23f3f81a4 100644 --- a/roles/youtubedlmaterial/tasks/main.yml +++ b/roles/youtubedlmaterial/tasks/main.yml @@ -28,6 +28,8 @@ - "{{ youtubedlmaterial_port_http }}:17442" env: ALLOW_CONFIG_MUTATIONS: "true" + UID: " {{ youtubedlmaterial_user_id }}" + GID: " {{ youtubedlmaterial_group_id }}" TZ: "{{ ansible_nas_timezone }}" restart_policy: unless-stopped memory: "{{ youtubedlmaterial_memory }}"