diff --git a/tasks/main.yml b/tasks/main.yml index 30cd98c..5b5b6ff 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,3 +1,10 @@ +- name: Include sensitive info + include_vars: + dir: '{{ role_path }}/vault' + depth: 1 + tags: + - vault + - transmission - name: Copy configuration files for Transmission loop: - { src: 'transmission.json.j2', dest: '{{ transmission.root_dir }}/.config/settings.json', mode: '0600' } diff --git a/templates/transmission.json.j2 b/templates/transmission.json.j2 index 555236d..6364bb5 100644 --- a/templates/transmission.json.j2 +++ b/templates/transmission.json.j2 @@ -45,10 +45,10 @@ "rpc-enabled": true, "rpc-host-whitelist": "127.0.0.1", "rpc-host-whitelist-enabled": false, - "rpc-password": "{{ transmission_vault.password }}", + "rpc-password": "{{ vault_transmission.password }}", "rpc-port": {{ transmission.rpc.port }}, "rpc-url": "/", - "rpc-username": "{{ transmission_vault.username }}", + "rpc-username": "{{ vault_transmission.username }}", "rpc-whitelist": "127.0.0.1", "rpc-whitelist-enabled": false, "scrape-paused-torrents-enabled": true,