diff --git a/Makefile b/Makefile index 93df69d..b81c5bb 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,8 @@ apply-all: ansible-playbook debian.yml -u root -i 'andraia,' apply-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: su -c "mkdir -p /root/.ssh/ && cat ~gary/.ssh/id_rsa.pub >> /root/.ssh/authorized_key" init: diff --git a/debian.yml b/debian.yml index 79ea39b..0c11412 100644 --- a/debian.yml +++ b/debian.yml @@ -219,10 +219,10 @@ name: redshift-gtk state: latest - - name: Install remmina - apt: - name: remmina - state: latest + #- name: Install remmina + # apt: + # name: remmina + # state: latest - name: Install rsync apt: diff --git a/general.yml b/general.yml index 14a3459..a03aa34 100644 --- a/general.yml +++ b/general.yml @@ -86,7 +86,7 @@ - name: Enable Syncthing Daemon service: - name: syncthing@gary + name: "syncthing@gary" enabled: yes state: started diff --git a/plex_server.yml b/plex_server.yml new file mode 100644 index 0000000..8083b9f --- /dev/null +++ b/plex_server.yml @@ -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