--- # 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