Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: ENHANCEMENT - YouTubeDL-Material - add UID/GID env options #598

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions roles/youtubedlmaterial/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look right to me.

youtubedlmaterial_group_id: "1000"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or this


# network
youtubedlmaterial_hostname: "youtubedlmaterial"
youtubedlmaterial_port_http: "8998"
Expand Down
2 changes: 2 additions & 0 deletions roles/youtubedlmaterial/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
- "{{ youtubedlmaterial_port_http }}:17442"
env:
ALLOW_CONFIG_MUTATIONS: "true"
UID: " {{ youtubedlmaterial_user_id }}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unintentional whitespace next to the uid/gid opening quotes

GID: " {{ youtubedlmaterial_group_id }}"
TZ: "{{ ansible_nas_timezone }}"
restart_policy: unless-stopped
memory: "{{ youtubedlmaterial_memory }}"
Expand Down