2022-09-26 07:52:13 +02:00
|
|
|
---
|
2022-09-26 10:34:16 +02:00
|
|
|
# tasks file for navidrome
|
|
|
|
|
|
|
|
- name: Set up directories
|
|
|
|
ansible.builtin.file:
|
|
|
|
state: directory
|
|
|
|
path: "{{ item }}"
|
|
|
|
owner: "{{ ansible_effective_user_id }}"
|
|
|
|
group: "{{ ansible_effective_group_id }}"
|
|
|
|
mode: "0750"
|
|
|
|
with_items:
|
|
|
|
- "{{ navidrome_config_volume }}"
|
|
|
|
- "~/navidrome"
|
|
|
|
tags:
|
|
|
|
- configuration
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Write configuration files
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: "{{ item }}.j2"
|
|
|
|
dest: "~/navidrome/{{ item }}"
|
|
|
|
mode: '0640'
|
|
|
|
loop:
|
|
|
|
- "docker-compose.yml"
|
|
|
|
- "env.navidrome.conf"
|
|
|
|
- "env.bonob.conf"
|
|
|
|
tags:
|
|
|
|
- configuration
|
|
|
|
|
|
|
|
- name: Ensure navirdome is running.
|
|
|
|
community.docker.docker_compose:
|
|
|
|
project_src: ~/navidrome/
|
|
|
|
build: false
|
|
|
|
become: false
|