move jellyfun to own lxc container
This commit is contained in:
parent
72cf4f794a
commit
270f03a702
|
@ -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
10
hosts
|
@ -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 |
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
dependencies:
|
||||||
|
- role: nfs-client
|
|
@ -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
|
|
@ -0,0 +1 @@
|
||||||
|
nfs: []
|
|
@ -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 }}"
|
Loading…
Reference in New Issue