author | Luke Hoersten <luke@hoersten.org> |
Sat, 10 Feb 2024 15:40:36 -0600 | |
changeset 229 | 7e3bf48e516a |
parent 198 | e1f873a07ea2 |
permissions | -rw-r--r-- |
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 |
|
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
# https://forums.plex.tv/t/read-me-first-about-server-armv7-and-armv8-ubuntu-debian/226567 |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
|
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
- name: add plex apt key |
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: |
3bd85e235e76
Removed deprecated apt_key ansible module.
Luke Hoersten <luke@hoersten.org>
parents:
42
diff
changeset
|
8 |
url: "https://downloads.plex.tv/plex-keys/PlexSign.key" |
197
1cc658995a70
Added key signing for apt repos.
Luke Hoersten <luke@hoersten.org>
parents:
189
diff
changeset
|
9 |
dest: "/etc/apt/trusted.gpg.d/plex.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 |
|
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
- name: add plex apt repo |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
become: yes |
198
e1f873a07ea2
Added trusted keys and https
Luke Hoersten <luke@hoersten.org>
parents:
197
diff
changeset
|
14 |
apt_repository: repo="deb [signed-by=/etc/apt/trusted.gpg.d/plex.asc] https://downloads.plex.tv/repo/deb public main" |
0
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
notify: restart plex service |
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 |
|
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
21 |
- name: install plex server |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
22 |
become: yes |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
apt: name="plexmediaserver" |
df042396074e
Opensourcing raspberry pi roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
24 |
notify: restart plex service |
42
edb53dfadfb5
Moved to ext4 for permissions on hdd.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
25 |
|
edb53dfadfb5
Moved to ext4 for permissions on hdd.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
26 |
- name: ensure plex service is running |
edb53dfadfb5
Moved to ext4 for permissions on hdd.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
27 |
become: yes |
edb53dfadfb5
Moved to ext4 for permissions on hdd.
Luke Hoersten <luke@hoersten.org>
parents:
2
diff
changeset
|
28 |
systemd: name="plexmediaserver.service" state="started" daemon_reload="yes" |