diff options
| author | Kumar Damani <me@kumardamani.net> | 2025-06-30 21:11:10 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2025-06-30 21:11:10 +0000 |
| commit | a125ec65a120ce23e4e692a48eaa169bc40e5506 (patch) | |
| tree | c1c7ed19c1e00f33d5fe6d7caa3c622945b3c423 /ansible/roles/torrents/tasks/config.yaml | |
| parent | 7e603bcc92c7ddc19dbfb0c46434bc6847ad3781 (diff) | |
ansible refactor to newer methods
Diffstat (limited to 'ansible/roles/torrents/tasks/config.yaml')
| -rw-r--r-- | ansible/roles/torrents/tasks/config.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
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 |
