jellyfin/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 03 Apr 2023 13:20:18 -0500
changeset 211 9e2b2cc6ccf1
parent 208 88a7fee5effe
permissions -rw-r--r--
Version update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
     3
# https://jellyfin.org/downloads/server
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
     5
- name: add jellyfin apt key
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
  become: yes
189
3bd85e235e76 Removed deprecated apt_key ansible module.
Luke Hoersten <luke@hoersten.org>
parents: 42
diff changeset
     7
  get_url:
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
     8
    url: "https://repo.jellyfin.org/jellyfin_team.gpg.key"
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
     9
    dest: "/etc/apt/trusted.gpg.d/jellyfin_team.asc"
189
3bd85e235e76 Removed deprecated apt_key ansible module.
Luke Hoersten <luke@hoersten.org>
parents: 42
diff changeset
    10
    mode: "0644"
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    12
- name: add jellyfin apt repo
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
  become: yes
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    14
  apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/jellyfin_team.asc] https://repo.jellyfin.org/ubuntu jammy main unstable"
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    15
  notify: restart jellyfin service
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
- name: update apt package cache
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
  become: yes
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
  apt: upgrade="dist" update_cache="yes" cache_valid_time="3600"
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    21
- name: install jellyfin server
0
df042396074e Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
  become: yes
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    23
  apt: name="jellyfin"
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    24
  notify: restart jellyfin service
42
edb53dfadfb5 Moved to ext4 for permissions on hdd.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    25
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    26
- name: ensure jellyfin service is running
42
edb53dfadfb5 Moved to ext4 for permissions on hdd.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    27
  become: yes
208
88a7fee5effe Add jellyfin role.
Luke Hoersten <luke@hoersten.org>
parents: 198
diff changeset
    28
  systemd: name="jellyfin.service" state="started" daemon_reload="yes"