Update transmission task
This commit is contained in:
parent
56331232e6
commit
21fce0e4f0
1 changed files with 9 additions and 4 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
# TODO: stop transmission daemon beforehand, config does not seem to apply
|
# transmission's configuration file does not change while the service is
|
||||||
# during active service
|
# still running
|
||||||
|
- name: stop transmission daemon
|
||||||
|
systemd:
|
||||||
|
name: transmission
|
||||||
|
state: stopped
|
||||||
|
scope: user
|
||||||
|
|
||||||
- name: copy transmission template
|
- name: copy transmission template
|
||||||
template:
|
template:
|
||||||
|
|
@ -7,9 +12,9 @@
|
||||||
dest: '{{ ansible_env.HOME }}/.config/transmission-daemon/settings.json'
|
dest: '{{ ansible_env.HOME }}/.config/transmission-daemon/settings.json'
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
|
|
||||||
- name: restart transmission daemon
|
- name: start transmission daemon
|
||||||
systemd:
|
systemd:
|
||||||
name: transmission
|
name: transmission
|
||||||
state: restarted
|
state: started
|
||||||
enabled: true
|
enabled: true
|
||||||
scope: user
|
scope: user
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue