# transmission's configuration file does not change while the service is # still running - name: stop transmission daemon systemd: name: transmission state: stopped scope: user - name: copy transmission template template: src: 'templates/transmission.j2' dest: '{{ ansible_env.HOME }}/.config/transmission-daemon/settings.json' mode: '0600' - name: start transmission daemon systemd: name: transmission state: started enabled: true scope: user