make album download work
parent
d41d0f2d7d
commit
410ce50a59
|
@ -1 +1,2 @@
|
||||||
.vault_password
|
.vault_password
|
||||||
|
albums.txt
|
||||||
|
|
18
all.yml
18
all.yml
|
@ -3,23 +3,17 @@
|
||||||
become: yes
|
become: yes
|
||||||
roles:
|
roles:
|
||||||
- role: base
|
- role: base
|
||||||
tags:
|
tags: base
|
||||||
- base
|
|
||||||
- role: cron
|
- role: cron
|
||||||
tags:
|
tags: cron
|
||||||
- cron
|
|
||||||
- role: ufw
|
- role: ufw
|
||||||
tags:
|
tags: ufw
|
||||||
- ufw
|
|
||||||
- role: fail2ban
|
- role: fail2ban
|
||||||
tags:
|
tags: fail2ban
|
||||||
- fail2ban
|
|
||||||
- role: node-exporter
|
- role: node-exporter
|
||||||
tags:
|
tags: node-exporter
|
||||||
- node-exporter
|
|
||||||
- role: docker
|
- role: docker
|
||||||
tags:
|
tags: docker
|
||||||
- docker
|
|
||||||
- role: traefik
|
- role: traefik
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
20
music.yml
20
music.yml
|
@ -6,23 +6,27 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: music
|
name: music
|
||||||
tasks_from: download_music_requirements
|
tasks_from: download_music_requirements
|
||||||
tags:
|
apply:
|
||||||
- requirements
|
tags: requirements
|
||||||
|
tags: requirements
|
||||||
- name: Install and configure Funkwhale
|
- name: Install and configure Funkwhale
|
||||||
include_role:
|
include_role:
|
||||||
name: music
|
name: music
|
||||||
tasks_from: funkwhale
|
tasks_from: funkwhale
|
||||||
tags:
|
apply:
|
||||||
- install
|
tags: install
|
||||||
|
tags: install
|
||||||
- name: Download submitted list of albums
|
- name: Download submitted list of albums
|
||||||
include_role:
|
include_role:
|
||||||
name: music
|
name: music
|
||||||
tasks_from: download_music
|
tasks_from: download_music
|
||||||
tags:
|
apply:
|
||||||
- download
|
tags: download
|
||||||
|
tags: download
|
||||||
- name: Import music into Funkwhale
|
- name: Import music into Funkwhale
|
||||||
include_role:
|
include_role:
|
||||||
name: music
|
name: music
|
||||||
tasks_from: import_music
|
tasks_from: import_music
|
||||||
tags:
|
apply:
|
||||||
- import
|
tags: import
|
||||||
|
tags: import
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
https://www.deezer.com/fr/album/42024091
|
|
|
@ -1,8 +1,16 @@
|
||||||
|
- name: Update deezloader configuration file
|
||||||
|
template:
|
||||||
|
src: deezloader_settings.ini.j2
|
||||||
|
dest: "{{ deezloader_folder_path }}/setting.ini"
|
||||||
|
owner: "{{ base_user_name }}"
|
||||||
|
group: "{{ base_user_name }}"
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Download required albums
|
- name: Download required albums
|
||||||
shell:
|
shell:
|
||||||
argv: "deez-dw.py --recursive_download True --recursive_quality True --output {{ deezloader_songs_path }} --not_gui False --link {{ item }}"
|
cmd: "deez-dw.py --recursive_download True --recursive_quality True --output {{ deezloader_songs_path }} --not_gui False --link {{ item }}"
|
||||||
chdir: "{{ deezloader_folder_path }}"
|
chdir: "{{ deezloader_folder_path }}"
|
||||||
with_lines: "cat files/albums.txt"
|
with_items: "{{ lookup('file', 'files/albums.txt').splitlines() }}"
|
||||||
register: output_deezloader
|
register: output_deezloader
|
||||||
|
|
||||||
- name: Show download state
|
- name: Show download state
|
||||||
|
|
|
@ -19,14 +19,6 @@
|
||||||
- "{{ deezloader_songs_path }}"
|
- "{{ deezloader_songs_path }}"
|
||||||
- "{{ beets_config_folder }}"
|
- "{{ beets_config_folder }}"
|
||||||
|
|
||||||
- name: Update deezloader configuration file
|
|
||||||
template:
|
|
||||||
src: deezloader_settings.ini.j2
|
|
||||||
dest: "{{ deezloader_folder_path }}/settings.ini"
|
|
||||||
owner: "{{ base_user_name }}"
|
|
||||||
group: "{{ base_user_name }}"
|
|
||||||
mode: 0644
|
|
||||||
|
|
||||||
- name: Update beets configuration file
|
- name: Update beets configuration file
|
||||||
template:
|
template:
|
||||||
src: beets_config.yaml.j2
|
src: beets_config.yaml.j2
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
group: "{{ base_user_name }}"
|
group: "{{ base_user_name }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: Copy Traefik templates (nginx conf and Compose)
|
- name: Copy Funkwhale templates (nginx conf and Compose)
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
# Remove .j2 extension
|
# Remove .j2 extension
|
||||||
|
|
Loading…
Reference in New Issue