1
0
Fork 0

move jellyfun to own lxc container

This commit is contained in:
Massaki Archambault 2024-10-14 18:19:06 -04:00
parent 72cf4f794a
commit 270f03a702
7 changed files with 59 additions and 1 deletions

View File

@ -21,7 +21,7 @@ haproxy:
- drone.badjware.dev - drone.badjware.dev
- ci.badjware.dev - ci.badjware.dev
- grafana.badjware.dev - grafana.badjware.dev
- jellyfin.badjware.dev # - jellyfin.badjware.dev
- chat.badjware.dev - chat.badjware.dev
backend: backend:
- server: 192.168.20.20:8443 - server: 192.168.20.20:8443
@ -69,6 +69,11 @@ haproxy:
- 192.168.20.20/24 - 192.168.20.20/24
- 192.168.30.20/24 - 192.168.30.20/24
- 10.100.0.0/24 - 10.100.0.0/24
- frontend:
- jellyfin.badjware.dev
backend:
- server: 192.168.20.34:8096
ssl: false
- frontend: - frontend:
- hass.badjware.dev - hass.badjware.dev
backend: backend:

10
hosts
View File

@ -67,6 +67,15 @@ all:
ansible_host: 192.168.20.33 ansible_host: 192.168.20.33
exposed_usb_devices: exposed_usb_devices:
- 2-1 - 2-1
jellyfin:
hosts:
jellyfin:
ansible_host: 192.168.20.34
nfs:
- path: /mnt/Movies
src: 192.168.20.30:/mnt/pool0/media/Movies
- path: /mnt/Series
src: 192.168.20.30:/mnt/pool0/media/Series
k3s: k3s:
children: children:
k3s-server: k3s-server:
@ -109,6 +118,7 @@ all:
cups: cups:
usbip: usbip:
pihole: pihole:
jellyfin:
vars: vars:
ansible_user: ansible ansible_user: ansible
ansible_password: !vault | ansible_password: !vault |

View File

@ -63,6 +63,10 @@
roles: roles:
- cups - cups
- hosts: jellyfin
roles:
- jellyfin
# we want node metrics on the satisfactory server # we want node metrics on the satisfactory server
- hosts: satisfactory - hosts: satisfactory
roles: roles:

View File

@ -0,0 +1,2 @@
dependencies:
- role: nfs-client

View File

@ -0,0 +1,23 @@
- name: Download jellyfin repository gpg key
get_url:
url: https://repo.jellyfin.org/jellyfin_team.gpg.key
dest: /etc/apt/keyrings/jellyfin.asg
- name: Add jellyfin repository
apt_repository:
repo: deb [arch=amd64 signed-by=/etc/apt/keyrings/jellyfin.asg] https://repo.jellyfin.org/ubuntu {{ ansible_distribution_release }} main
- name: Install jellyfin
apt:
update_cache: true
name:
- jellyfin-server
- jellyfin-web
- jellyfin-ffmpeg6 # for transcode
- intel-opencl-icd # for transcode
- name: Enable jellyfin service
systemd:
name: jellyfin
state: started
enabled: yes

View File

@ -0,0 +1 @@
nfs: []

View File

@ -0,0 +1,13 @@
- name: Install nfs-common
apt:
update_cache: true
name:
- nfs-common
- name: Create fstab entries
mount:
path: "{{ item.path }}"
src: "{{ item.src }}"
fstype: nfs
state: mounted
loop: "{{ nfs }}"