ansible/roles/music/tasks/download_music.yml

19 lines
631 B
YAML

- 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
shell:
cmd: "deez-dw.py --recursive_download True --recursive_quality True --output {{ deezloader_songs_path }} --not_gui False --link {{ item }}"
chdir: "{{ deezloader_folder_path }}"
with_items: "{{ lookup('file', 'files/albums.txt').splitlines() }}"
register: output_deezloader
- name: Show download state
debug:
msg: "{{ output_deezloader }}"