-
Notifications
You must be signed in to change notification settings - Fork 0
/
media-manager.yml
54 lines (45 loc) · 1.62 KB
/
media-manager.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
44
45
46
47
48
49
50
51
52
53
54
---
- name: Apply Proxmox config
hosts: pve
vars_files:
- vars.yml
- private-vars.yml
roles:
- role: tychobrouwer.lxc_mount
lxc_mount_is_lxc: false
lxc_mount_mounts:
- { src: /rpool-main/media-share/Movies, dest: /share/media-share/Movies }
- { src: /rpool-main/media-share/Series, dest: /share/media-share/Series }
- { src: /rpool-main/media-share/Books, dest: /share/media-share/Books }
- { src: /rpool-main/media-share/Torrents, dest: /share/media-share/Torrents }
lxc_mount_lxc_id: 106
- name: Install arr services
hosts: media-manager
vars_files:
- vars.yml
- private-vars.yml
roles:
- role: tychobrouwer.ssh
- role: tychobrouwer.lxc_mount
lxc_mount_is_lxc: true
lxc_mount_mounts:
- { src: /rpool-main/media-share/Movies, dest: /share/media-share/Movies }
- { src: /rpool-main/media-share/Series, dest: /share/media-share/Series }
- { src: /rpool-main/media-share/Books, dest: /share/media-share/Books }
- { src: /rpool-main/media-share/Torrents, dest: /share/media-share/Torrents }
lxc_mount_lxc_id: 106
- role: tychobrouwer.arrs
arrs_media_owner: mountuser
tasks:
- name: Ensure arrs users are in mountuser group
ansible.builtin.user:
name: "{{ item }}"
groups: mountuser
append: true
with_items: [prowlarr, radarr, sonarr, readarr, bazarr]
- name: Set journald log size
ansible.builtin.lineinfile:
path: /etc/systemd/journald.conf
line: SystemMaxUse=512M
regexp: ^SystemMaxUse=
insertafter: "[Journal]"