From 12a700930896f9471b5b2a34ac6e3c0023192634 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 5 Jul 2022 19:07:15 -0400 Subject: [PATCH] remove vars and use defaults for var management --- applications/roles/base/vars/main.yml | 2 -- applications/roles/home-apps/vars/main.yml | 2 -- .../roles/media-manager/defaults/main.yml | 15 ++++++++++++++- applications/roles/media-manager/vars/main.yml | 2 -- applications/roles/media/defaults/main.yml | 8 +++++++- applications/roles/media/vars/main.yml | 2 -- 6 files changed, 21 insertions(+), 10 deletions(-) delete mode 100644 applications/roles/base/vars/main.yml delete mode 100644 applications/roles/home-apps/vars/main.yml delete mode 100644 applications/roles/media-manager/vars/main.yml delete mode 100644 applications/roles/media/vars/main.yml diff --git a/applications/roles/base/vars/main.yml b/applications/roles/base/vars/main.yml deleted file mode 100644 index a8e01ef..0000000 --- a/applications/roles/base/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for base diff --git a/applications/roles/home-apps/vars/main.yml b/applications/roles/home-apps/vars/main.yml deleted file mode 100644 index 5762bd4..0000000 --- a/applications/roles/home-apps/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for home-apps diff --git a/applications/roles/media-manager/defaults/main.yml b/applications/roles/media-manager/defaults/main.yml index b239141..a5a6c1d 100644 --- a/applications/roles/media-manager/defaults/main.yml +++ b/applications/roles/media-manager/defaults/main.yml @@ -1,2 +1,15 @@ --- -# defaults file for media-manager +TZ: "America/New_York" +PUID: 1000 +PGID: 1000 + +DOWNLOAD_FOLDER: "/mnt/downloads" +CONFIG_FOLDER: "~/.config/" +MEDIA_FOLDER: "/mnt/content" + +MOVIE_FOLDER: "{{ MEDIA_FOLDER }}/movies" +MOVIE_ANIME_FOLDER: "{{ MEDIA_FOLDER }}/movies-anime" +MOVIE_4K_FOLDER: "{{ MEDIA_FOLDER }}/movies-4k" +TV_FOLDER: "{{ MEDIA_FOLDER }}/tv" +TV_ANIME_FOLDER: "{{ MEDIA_FOLDER }}/tv-anime" +TV_4K_FOLDER: "{{ MEDIA_FOLDER }}/tv-4k" diff --git a/applications/roles/media-manager/vars/main.yml b/applications/roles/media-manager/vars/main.yml deleted file mode 100644 index 67312e7..0000000 --- a/applications/roles/media-manager/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for media-manager diff --git a/applications/roles/media/defaults/main.yml b/applications/roles/media/defaults/main.yml index 7a6baf8..115e098 100644 --- a/applications/roles/media/defaults/main.yml +++ b/applications/roles/media/defaults/main.yml @@ -1,2 +1,8 @@ --- -# defaults file for media +TZ: "America/New_York" +PUID: 1000 +PGID: 1000 + +DOWNLOAD_FOLDER: "/mnt/downloads" +CONFIG_FOLDER: "~/.config/" +MEDIA_FOLDER: "/mnt/content" diff --git a/applications/roles/media/vars/main.yml b/applications/roles/media/vars/main.yml deleted file mode 100644 index 2c396a6..0000000 --- a/applications/roles/media/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for media