Add plex server playbook
This commit is contained in:
parent
34f3a0f960
commit
f5befdb1fb
2
Makefile
2
Makefile
@ -4,6 +4,8 @@ apply-all:
|
|||||||
ansible-playbook debian.yml -u root -i 'andraia,'
|
ansible-playbook debian.yml -u root -i 'andraia,'
|
||||||
apply-local:
|
apply-local:
|
||||||
su -c "ansible-playbook debian.yml -u root -i '127.0.0.1,' --connection=local"
|
su -c "ansible-playbook debian.yml -u root -i '127.0.0.1,' --connection=local"
|
||||||
|
plex-local:
|
||||||
|
sudo ansible-playbook plex_server.yml -u root -i '127.0.0.1,' --connection=local
|
||||||
init-local:
|
init-local:
|
||||||
su -c "mkdir -p /root/.ssh/ && cat ~gary/.ssh/id_rsa.pub >> /root/.ssh/authorized_key"
|
su -c "mkdir -p /root/.ssh/ && cat ~gary/.ssh/id_rsa.pub >> /root/.ssh/authorized_key"
|
||||||
init:
|
init:
|
||||||
|
@ -219,10 +219,10 @@
|
|||||||
name: redshift-gtk
|
name: redshift-gtk
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install remmina
|
#- name: Install remmina
|
||||||
apt:
|
# apt:
|
||||||
name: remmina
|
# name: remmina
|
||||||
state: latest
|
# state: latest
|
||||||
|
|
||||||
- name: Install rsync
|
- name: Install rsync
|
||||||
apt:
|
apt:
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
- name: Enable Syncthing Daemon
|
- name: Enable Syncthing Daemon
|
||||||
service:
|
service:
|
||||||
name: syncthing@gary
|
name: "syncthing@gary"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
|
20
plex_server.yml
Normal file
20
plex_server.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Pull Plex Image
|
||||||
|
docker_image:
|
||||||
|
name: plexinc/pms-docker:latest
|
||||||
|
|
||||||
|
- name: Create Plex Container
|
||||||
|
docker_container:
|
||||||
|
name: Plex
|
||||||
|
image: plexinc/pms-docker:latest
|
||||||
|
state: started
|
||||||
|
restart_policy: always
|
||||||
|
network_mode: host
|
||||||
|
env:
|
||||||
|
PLEX_CLAIM: "America/North_Dakota/Center"
|
||||||
|
volumes:
|
||||||
|
- /pool0/plex/database:/config
|
||||||
|
- /pool0/plex/transcode:/transcode
|
||||||
|
- /pool0/plex/data:/data
|
||||||
|
- /pool0/plex/media_libraries:/media_libraries
|
Reference in New Issue
Block a user