transmission/tasks/main.yaml
changeset 42 edb53dfadfb5
parent 34 ecbdaed7f151
child 204 fd38efd8f637
--- 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