mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 10:15:14 +00:00
mv mymediaforalexa to roles
This commit is contained in:
parent
3645e1ac29
commit
88604efebb
4 changed files with 20 additions and 18 deletions
|
@ -30,9 +30,6 @@ jellyfin_enabled: false
|
||||||
|
|
||||||
youtubedlmaterial_enabled: false
|
youtubedlmaterial_enabled: false
|
||||||
|
|
||||||
# Music
|
|
||||||
mymediaforalexa_enabled: false
|
|
||||||
|
|
||||||
# News
|
# News
|
||||||
miniflux_enabled: false
|
miniflux_enabled: false
|
||||||
|
|
||||||
|
@ -428,12 +425,6 @@ get_iplayer_config_directory: "{{ docker_home }}/get_iplayer"
|
||||||
get_iplayer_download_directory: "{{ tv_root }}/iplayer_downloads"
|
get_iplayer_download_directory: "{{ tv_root }}/iplayer_downloads"
|
||||||
get_iplayer_port: "8182"
|
get_iplayer_port: "8182"
|
||||||
|
|
||||||
###
|
|
||||||
### mymediaforalexa
|
|
||||||
###
|
|
||||||
mymediaforalexa_media_directory: "{{ music_root }}"
|
|
||||||
mymediaforalexa_data_directory: "{{ docker_home }}/mymediaforalexa"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Jackett
|
### Jackett
|
||||||
###
|
###
|
||||||
|
|
9
nas.yml
9
nas.yml
|
@ -113,6 +113,11 @@
|
||||||
- mylar
|
- mylar
|
||||||
when: (mylar_enabled | default(False))
|
when: (mylar_enabled | default(False))
|
||||||
|
|
||||||
|
- role: mymediaforalexa
|
||||||
|
tags:
|
||||||
|
- mymediaforalexa
|
||||||
|
when: (mymediaforalexa_enabled | default(False))
|
||||||
|
|
||||||
- role: n8n
|
- role: n8n
|
||||||
tags:
|
tags:
|
||||||
- n8n_enabled
|
- n8n_enabled
|
||||||
|
@ -247,10 +252,6 @@
|
||||||
when: (get_iplayer_enabled | default(False))
|
when: (get_iplayer_enabled | default(False))
|
||||||
tags: get_iplayer
|
tags: get_iplayer
|
||||||
|
|
||||||
- import_tasks: tasks/mymediaforalexa.yml
|
|
||||||
when: (mymediaforalexa_enabled | default(False))
|
|
||||||
tags: mymediaforalexa
|
|
||||||
|
|
||||||
- import_tasks: tasks/jackett.yml
|
- import_tasks: tasks/jackett.yml
|
||||||
when: (jackett_enabled | default(False))
|
when: (jackett_enabled | default(False))
|
||||||
tags: jackett
|
tags: jackett
|
||||||
|
|
9
roles/mymediaforalexa/defaults/main.yml
Normal file
9
roles/mymediaforalexa/defaults/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
# enable or disable the application
|
||||||
|
mymediaforalexa_enabled: false
|
||||||
|
# directories
|
||||||
|
mymediaforalexa_media_directory: "{{ music_root }}"
|
||||||
|
mymediaforalexa_data_directory: "{{ docker_home }}/mymediaforalexa"
|
||||||
|
|
||||||
|
# specs
|
||||||
|
mymediaforalexa_memory: "1g"
|
|
@ -1,12 +1,14 @@
|
||||||
- name: Create mymedia for alexa Directories
|
---
|
||||||
|
- name: Create Mymediaforalexa Directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
# mode: 0755
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ mymediaforalexa_media_directory }}"
|
- "{{ mymediaforalexa_media_directory }}"
|
||||||
- "{{ mymediaforalexa_data_directory }}"
|
- "{{ mymediaforalexa_data_directory }}"
|
||||||
|
|
||||||
- name: mymedia for alexa Docker Container
|
- name: mymediaforalexa Docker Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: mymediaforalexa
|
name: mymediaforalexa
|
||||||
image: bizmodeller/mymediaforalexa
|
image: bizmodeller/mymediaforalexa
|
||||||
|
@ -14,7 +16,6 @@
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ mymediaforalexa_media_directory }}:/medialibrary:rw"
|
- "{{ mymediaforalexa_media_directory }}:/medialibrary:rw"
|
||||||
- "{{ mymediaforalexa_data_directory }}:/datadir:rw"
|
- "{{ mymediaforalexa_data_directory }}:/datadir:rw"
|
||||||
network_mode: host
|
network_mode: "host"
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
memory: 1g
|
memory: "{{ mymediaforalexa_memory }}"
|
||||||
|
|
Loading…
Reference in a new issue