2021-05-12 17:13:33 +02:00
|
|
|
- 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
|
|
|
|
|
2021-05-11 13:56:51 +02:00
|
|
|
- name: Download required albums
|
2021-05-12 18:45:18 +02:00
|
|
|
# So that files are written with base user perms
|
|
|
|
become: yes
|
|
|
|
become_user: "{{ base_user_name }}"
|
2021-05-11 13:56:51 +02:00
|
|
|
shell:
|
2021-05-12 17:13:33 +02:00
|
|
|
cmd: "deez-dw.py --recursive_download True --recursive_quality True --output {{ deezloader_songs_path }} --not_gui False --link {{ item }}"
|
2021-05-11 13:56:51 +02:00
|
|
|
chdir: "{{ deezloader_folder_path }}"
|
2021-05-12 17:13:33 +02:00
|
|
|
with_items: "{{ lookup('file', 'files/albums.txt').splitlines() }}"
|
2021-05-11 13:56:51 +02:00
|
|
|
register: output_deezloader
|
|
|
|
|
|
|
|
- name: Show download state
|
|
|
|
debug:
|
|
|
|
msg: "{{ output_deezloader }}"
|