53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
---
|
|
- name: "install beets"
|
|
ansible.builtin.apt:
|
|
name:
|
|
- "beets"
|
|
- "ffmpeg"
|
|
|
|
- name: "install nextcloud-upload"
|
|
ansible.builtin.copy:
|
|
src: "./nextcloud-upload"
|
|
dest: "/usr/local/bin/nextcloud-upload"
|
|
mode: 0755
|
|
|
|
- block:
|
|
|
|
- name: "create beets config directory"
|
|
ansible.builtin.file:
|
|
path: "{{ music_user_home_directory }}/.config/beets"
|
|
state: "directory"
|
|
owner: "{{ music_user_name }}"
|
|
group: "{{ music_user_name }}"
|
|
mode: 0755
|
|
|
|
- name: "create beets convert directory"
|
|
ansible.builtin.file:
|
|
path: "/var/tmp/{{ music_user_name }}/mp3"
|
|
state: "directory"
|
|
owner: "{{ music_user_name }}"
|
|
group: "{{ music_user_name }}"
|
|
mode: 0755
|
|
|
|
- name: "configure beets"
|
|
ansible.builtin.template:
|
|
src: "./beets.yml"
|
|
dest: "{{ music_user_home_directory }}/.config/beets/config.yaml"
|
|
mode: 0644
|
|
|
|
- name: "create nextcloud-upload config directory"
|
|
ansible.builtin.file:
|
|
path: "{{ music_user_home_directory }}/.config/nextcloud-upload"
|
|
state: "directory"
|
|
owner: "{{ music_user_name }}"
|
|
group: "{{ music_user_name }}"
|
|
mode: 0755
|
|
|
|
- name: "configure nextcloud-upload"
|
|
ansible.builtin.template:
|
|
src: "./nextcloud-upload.yml"
|
|
dest: "{{ music_user_home_directory }}/.config/nextcloud-upload/config.yml"
|
|
mode: 0644
|
|
|
|
become_user: "{{ music_user_name }}"
|