-
Notifications
You must be signed in to change notification settings - Fork 5
/
recyclarr.yml
43 lines (36 loc) · 1.05 KB
/
recyclarr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
- hosts: homelab
vars:
application: recyclarr
docker_network: "{{ networks.pub }}"
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: ghcr.io/recyclarr/recyclarr:7.4.0
volumes:
- "{{ config_directory }}:/config"
env:
TZ: "{{ common_timezone }}"
- name: Wait for config folder
ansible.builtin.wait_for:
path: "{{ config_directory }}/configs"
- name: Synchronise config
ansible.builtin.template:
src: "{{ item }}"
dest: "{{ config_directory }}/configs/{{ item | basename | regex_replace('\\.j2$', '') }}"
mode: "0640"
owner: "{{ common_user }}"
group: "{{ common_group }}"
with_fileglob:
- "{{ files_directory }}/*"
tags:
- config