Files
aurbis/tasks/nightingale.yml
T
2026-10-07 18:49:38 +02:00

43 lines
1.3 KiB
YAML

- name: Create nightingale directory
file:
path: /opt/nightingale
state: directory
owner: root
group: aurbis
mode: "02775"
# Song library. Read-only for nightingale.
# Keep this in sync with the /karaoke mount in nextcloud
# TODO: Maybe make this a configurable non-dependency
- name: Create nightingale songs dir (writable by nextcloud's www-data)
file:
path: /opt/nightingale/songs
state: directory
owner: root
group: www-data
mode: "02775"
# Processed-song cache. Bind-mounted into the container at /data/cache and
# reachable over sshfs so songs can be analyzed on a machine with more RAM and
# the results dropped straight in here. Owned by the container's uid (999, fixed
# in razzaru/nightingale) so it can write as owner; group aurbis + setgid lets
# aurbis members (sshfs) create/replace files too.
- name: Create nightingale cache dir (shared with container uid 999 + aurbis)
file:
path: /opt/nightingale/cache
state: directory
owner: "999"
group: aurbis
mode: "02775"
- name: Template nightingale compose
template:
src: nightingale/docker-compose.yml.j2
dest: /opt/nightingale/docker-compose.yml
group: aurbis
mode: "0664"
- name: Start nightingale
community.docker.docker_compose_v2:
project_src: /opt/nightingale