# HG changeset patch # User Luke Hoersten # Date 1592078311 18000 # Node ID edb53dfadfb569fa6f4094ef5aebf6f5a8fb3d70 # Parent b2ee28d1694c2d53434992fa701affc4e52915bb Moved to ext4 for permissions on hdd. diff -r b2ee28d1694c -r edb53dfadfb5 papermc/tasks/main.yaml --- a/papermc/tasks/main.yaml Tue Jun 09 19:23:44 2020 -0500 +++ b/papermc/tasks/main.yaml Sat Jun 13 14:58:31 2020 -0500 @@ -43,6 +43,7 @@ state: "directory" owner: "{{papermc_user}}" group: "{{papermc_user}}" + recurse: "yes" mode: "0755" - name: set world files diff -r b2ee28d1694c -r edb53dfadfb5 plex/handlers/main.yaml --- a/plex/handlers/main.yaml Tue Jun 09 19:23:44 2020 -0500 +++ b/plex/handlers/main.yaml Sat Jun 13 14:58:31 2020 -0500 @@ -1,5 +1,5 @@ --- - name: restart plex service + become: yes systemd: name="plexmediaserver" state="restarted" daemon_reload="yes" - become: yes diff -r b2ee28d1694c -r edb53dfadfb5 plex/tasks/main.yaml --- a/plex/tasks/main.yaml Tue Jun 09 19:23:44 2020 -0500 +++ b/plex/tasks/main.yaml Sat Jun 13 14:58:31 2020 -0500 @@ -19,3 +19,7 @@ become: yes apt: name="plexmediaserver" notify: restart plex service + +- name: ensure plex service is running + become: yes + systemd: name="plexmediaserver.service" state="started" daemon_reload="yes" diff -r b2ee28d1694c -r edb53dfadfb5 transmission/defaults/main.yaml --- a/transmission/defaults/main.yaml Tue Jun 09 19:23:44 2020 -0500 +++ b/transmission/defaults/main.yaml Sat Jun 13 14:58:31 2020 -0500 @@ -4,3 +4,4 @@ transmission_port: "9091" transmission_passwd: "transmission" transmission_download_dir: "/var/lib/transmission-daemon/downloads" +transmission_user: "debian-transmission" diff -r b2ee28d1694c -r edb53dfadfb5 transmission/tasks/main.yaml --- a/transmission/tasks/main.yaml Tue Jun 09 19:23:44 2020 -0500 +++ b/transmission/tasks/main.yaml Sat Jun 13 14:58:31 2020 -0500 @@ -5,6 +5,16 @@ apt: name="transmission-daemon" notify: restart transmission service +- name: create data dir + become: yes + file: + path: "{{transmission_download_dir}}" + state: "directory" + owner: "{{transmission_user}}" + group: "{{transmission_user}}" + mode: "0755" + recurse: "yes" + - name: stop transmission service systemd: name="transmission-daemon" state="stopped" daemon_reload="yes" become: yes @@ -75,6 +85,6 @@ notify: restart transmission service - name: start transmission service + become: yes systemd: name="transmission-daemon" state="started" daemon_reload="yes" - become: yes changed_when: false