add media

This commit is contained in:
Gabriel Augendre 2024-10-12 12:41:40 +02:00
parent a7a925edb2
commit acbe71953a
7 changed files with 136 additions and 0 deletions

View file

@ -12,5 +12,6 @@
- import_playbook: goatcounter.yaml # noqa: name[play] - import_playbook: goatcounter.yaml # noqa: name[play]
- import_playbook: lyon-transports.yaml # noqa: name[play] - import_playbook: lyon-transports.yaml # noqa: name[play]
- import_playbook: manuels.yaml # noqa: name[play] - import_playbook: manuels.yaml # noqa: name[play]
- import_playbook: media.yaml # noqa: name[play]
- import_playbook: test_headers.yaml # noqa: name[play] - import_playbook: test_headers.yaml # noqa: name[play]
- import_playbook: wallabag.yaml # noqa: name[play] - import_playbook: wallabag.yaml # noqa: name[play]

View file

@ -0,0 +1,3 @@
PUID=1000
PGID=1000
TZ=Europe/Paris

View file

@ -0,0 +1,68 @@
services:
plex:
image: plexinc/pms-docker:plexpass
restart: always
env_file: plex.env
ports:
- "9003:32400"
# - "32400:32400/tcp"
# - "3005:3005/tcp"
# - "8324:8324/tcp"
# - "32469:32469/tcp"
# - "1900:1900/udp"
# - "32410:32410/udp"
# - "32412:32412/udp"
# - "32413:32413/udp"
# - "32414:32414/udp"
volumes:
- ./plex/config:/config
- ./plex/transcode:/transcode
- ./data:/data
transmission:
image: lscr.io/linuxserver/transmission:latest
restart: always
env_file: transmission.env
volumes:
- ./transmission:/config
- ./data:/data
mem_limit: 2g
ports:
- "9004:9091"
sonarr:
image: lscr.io/linuxserver/sonarr:latest
restart: always
env_file: common.env
volumes:
- ./sonarr:/config
- ./data:/data
mem_limit: 1g
ports:
- "9005:8989"
prowlarr:
image: lscr.io/linuxserver/prowlarr:latest
restart: always
env_file: common.env
volumes:
- ./prowlarr:/config
mem_limit: 1g
ports:
- "9006:9696"
radarr:
image: lscr.io/linuxserver/radarr:latest
restart: always
env_file: common.env
volumes:
- ./radarr:/config
- ./data:/data
mem_limit: 1g
ports:
- "9007:7878"
unpackerr:
image: golift/unpackerr
volumes:
- ./data:/data
restart: always
user: 1000:1000
env_file: unpackerr.env
mem_limit: 2g
cpus: 2

43
playbooks/apps/media.yaml Normal file
View file

@ -0,0 +1,43 @@
---
- name: Media
hosts: servers
gather_facts: false
tasks:
- name: Docker
ansible.builtin.include_role:
name: docker
vars:
docker_app_name: media
plex_claim: !vault |
$ANSIBLE_VAULT;1.1;AES256
61633832616461636362643838353961353962393662346235616664343635363864616366346331
3663316133316336333032626165303763396539303539300a323935663564386165636237666536
38393939383461653564333232666565383837306465363833336636666535306438306132323066
6635653763376534640a373861383531636438353138386133333430376262356635373333666237
34663664613631393139313731623836626439613535623365343233363937616265
transmission_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
34386433633862613963376431303435363964366138616135643266643661633835656466643466
3962383731643061383663666130343136333462643733620a653234373937633164326230316363
32326137376263366163666433303363393464646639363166663933346364663437353439333965
3163646264326437310a333737333766306234366435613335303632373231306566386566333533
36663764396230353939306238373132363137376231383063343839653537613037336162366261
30336462653132656433323237613362323135623665336461376434303335353136333262653365
636134613535663365316265636163653335
sonarr_api_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
31393436633730653965363164333165326434353133666164336463653264623337373438346332
3261323037663432343266336332336139626234656130380a366432323935356134333936373934
66313232353132363439373338623331313832313463336432656466626632306465326664343731
3431653135333631340a333962656132663065393737306261366237326532643338303832363463
64346136336438363238336237396231343064633464353934383835653132613363383833376166
3934616366616264626232303561666533386435666166366632
radarr_api_key: !vault |-
$ANSIBLE_VAULT;1.1;AES256
65653435326663343566643664373737356438666466326566303733393132343637343266666664
3738326336613035373039636133316466656332303463620a646163366538343633616234326539
36333038393731316464323631373239356532306366353961656533643863656135633634386364
3833373537656164650a346139343762326166653634396230333133343930623263306561356361
61666438653664633764303263366434653436623366386364613631623862383364313434626638
3830616364616363396134346135383862643733616333656434

View file

@ -0,0 +1,5 @@
TZ=Europe/Paris
PLEX_CLAIM={{ plex_claim }}
ADVERTISE_IP=https://plex.augendre.info
PLEX_UID=1000
PLEX_GID=1000

View file

@ -0,0 +1,5 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
USER=gaugendre
PASS={{ transmission_password }}

View file

@ -0,0 +1,11 @@
PUID=1000
PGID=1000
TZ=Europe/Paris
UN_SONARR_0_URL=http://sonarr:8989
UN_SONARR_0_API_KEY={{ sonarr_api_key }}
UN_SONARR_0_PATHS_0=/data
UN_RADARR_0_URL=http://radarr:7878
UN_RADARR_0_API_KEY={{ radarr_api_key }}
UN_RADARR_0_PATHS_0=/data