transmission/tasks/main.yaml
changeset 204 fd38efd8f637
parent 42 edb53dfadfb5
equal deleted inserted replaced
203:4be395f0d127 204:fd38efd8f637
    23 - name: config ip whitelist
    23 - name: config ip whitelist
    24   become: yes
    24   become: yes
    25   lineinfile:
    25   lineinfile:
    26     path: "{{transmission_config}}"
    26     path: "{{transmission_config}}"
    27     regexp: '^    "rpc-whitelist":'
    27     regexp: '^    "rpc-whitelist":'
    28     line: '    "rpc-whitelist": "127.0.0.1,192.168.*.*",'
    28     line: '    "rpc-whitelist": "127.0.0.1,192.168.*.*,10.0.*.*",'
    29     insertafter: ",$"
    29     insertafter: ",$"
    30   notify: restart transmission service
    30   notify: restart transmission service
    31 
    31 
    32 - name: config umask
    32 - name: config umask
    33   become: yes
    33   become: yes