Lidarr arr-scripts configuration

This commit is contained in:
Mike Wilson
2025-06-27 13:39:46 -04:00
parent 260a40ceb2
commit c1ae312ea3
6 changed files with 143 additions and 4 deletions

View File

@@ -24,6 +24,32 @@
validate: docker compose -f %s config
become: true
- name: Create data directory
ansible.builtin.file:
path: "{{ data_dir }}/{{ item }}"
state: directory
owner: "{{ service_user.uid }}"
group: "{{ primary_gid }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
loop:
- "{{ role_name }}/config"
- "{{ role_name }}/custom-services"
- "{{ role_name }}/custom-cont"
- name: Copy arr-scripts init script
ansible.builtin.copy:
src: "scripts_init.bash"
dest: "{{ data_dir }}/{{ role_name }}/custom-cont"
owner: "{{ service_user.uid }}"
mode: 0564
become: true
- name: Copy extended.conf
ansible.builtin.template:
src: "extended.conf"
dest: "{{ data_dir }}/{{ role_name }}/config"
- name: Start docker container
community.docker.docker_compose_v2:
project_src: "{{ install_directory }}/{{ role_name }}"