34 lines
803 B
YAML
34 lines
803 B
YAML
- name: Install deezloader and beets
|
|
pip:
|
|
name: "{{ item }}"
|
|
state: present
|
|
loop:
|
|
- deezloader
|
|
- beets
|
|
|
|
- name: Create deezloader and beets directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ base_user_name }}"
|
|
group: "{{ base_user_name }}"
|
|
mode: 0755
|
|
recurse: yes
|
|
loop:
|
|
- "{{ deezloader_folder_path }}"
|
|
- "{{ deezloader_songs_path }}"
|
|
- "{{ 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
|
|
template:
|
|
src: beets_config.yaml.j2
|
|
dest: "{{ beets_config_folder }}/config.yaml"
|