transmission/tasks/main.yaml
changeset 42 edb53dfadfb5
parent 34 ecbdaed7f151
child 204 fd38efd8f637
equal deleted inserted replaced
41:b2ee28d1694c 42:edb53dfadfb5
     2 
     2 
     3 - name: install transmission
     3 - name: install transmission
     4   become: yes
     4   become: yes
     5   apt: name="transmission-daemon"
     5   apt: name="transmission-daemon"
     6   notify: restart transmission service
     6   notify: restart transmission service
       
     7 
       
     8 - name: create data dir
       
     9   become: yes
       
    10   file:
       
    11     path: "{{transmission_download_dir}}"
       
    12     state: "directory"
       
    13     owner: "{{transmission_user}}"
       
    14     group: "{{transmission_user}}"
       
    15     mode: "0755"
       
    16     recurse: "yes"
     7 
    17 
     8 - name: stop transmission service
    18 - name: stop transmission service
     9   systemd: name="transmission-daemon" state="stopped" daemon_reload="yes"
    19   systemd: name="transmission-daemon" state="stopped" daemon_reload="yes"
    10   become: yes
    20   become: yes
    11   changed_when: false
    21   changed_when: false
    73     line: "    \"idle-seeding-limit-enabled\": true,"
    83     line: "    \"idle-seeding-limit-enabled\": true,"
    74     insertafter: ",$"
    84     insertafter: ",$"
    75   notify: restart transmission service
    85   notify: restart transmission service
    76 
    86 
    77 - name: start transmission service
    87 - name: start transmission service
       
    88   become: yes
    78   systemd: name="transmission-daemon" state="started" daemon_reload="yes"
    89   systemd: name="transmission-daemon" state="started" daemon_reload="yes"
    79   become: yes
       
    80   changed_when: false
    90   changed_when: false