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/setup.yaml | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'ansible/roles/torrents/tasks/setup.yaml') diff --git a/ansible/roles/torrents/tasks/setup.yaml b/ansible/roles/torrents/tasks/setup.yaml index 25f1fe8..1aaaa83 100644 --- a/ansible/roles/torrents/tasks/setup.yaml +++ b/ansible/roles/torrents/tasks/setup.yaml @@ -1,15 +1,5 @@ --- -- name: 'setup | Ensure required vars are set' - ansible.builtin.assert: - that: - - item | mandatory - loop: - - '{{ torrents_nas_mount_path }}' - - '{{ torrents_rpc_username }}' - - '{{ torrents_rpc_password }}' - no_log: true - - name: 'setup | Install required pkgs' ansible.builtin.package: name: @@ -58,22 +48,3 @@ ansible.builtin.service: name: 'transmission-daemon' state: 'started' - -# We still need to stop it to place the config file or else it will get overwritten -- name: 'setup | Stop the service' - ansible.builtin.service: - name: 'transmission-daemon' - state: 'stopped' - -- name: 'setup | 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: 'setup | Start the service' - ansible.builtin.service: - name: 'transmission-daemon' - state: 'started' - enabled: true -- cgit v1.2.3