From a125ec65a120ce23e4e692a48eaa169bc40e5506 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Mon, 30 Jun 2025 17:11:10 -0400 Subject: ansible refactor to newer methods --- ansible/roles/torrents/tasks/config.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ansible/roles/torrents/tasks/config.yaml (limited to 'ansible/roles/torrents/tasks/config.yaml') diff --git a/ansible/roles/torrents/tasks/config.yaml b/ansible/roles/torrents/tasks/config.yaml new file mode 100644 index 0000000..d375645 --- /dev/null +++ b/ansible/roles/torrents/tasks/config.yaml @@ -0,0 +1,20 @@ +--- + +# We still need to stop it to place the config file or else it will get overwritten +- name: 'config | Stop the service' + ansible.builtin.service: + name: 'transmission-daemon' + state: 'stopped' + +- name: 'config | Copy the transmission config' + ansible.builtin.template: + src: 'settings.json.j2' + dest: '/home/transmission-user/.config/transmission-daemon/settings.json' + owner: 'transmission-user' + mode: '644' + +- name: 'config | Start the service' + ansible.builtin.service: + name: 'transmission-daemon' + state: 'started' + enabled: true -- cgit v1.2.3