Configure transmission
This commit is contained in:
parent
899dbea4dd
commit
3e0fdb6074
7 changed files with 145 additions and 3 deletions
23
roles/transmission/tasks/main.yaml
Normal file
23
roles/transmission/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
- name: ensure transmission-daemon is installed
|
||||
ansible.builtin.apt:
|
||||
name: transmission-daemon
|
||||
state: present
|
||||
become: true
|
||||
- name: ensure update-transmission-settings is deployed
|
||||
ansible.builtin.copy:
|
||||
src: "update-transmission-settings"
|
||||
dest: "/usr/local/sbin/update-transmission-settings"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0750"
|
||||
become: true
|
||||
notify: update transmission settings
|
||||
- name: ensure transmission settings are deployed
|
||||
ansible.builtin.copy:
|
||||
content: '{{ transmission__settings | to_json(indent=4, sort_keys=True) }}'
|
||||
dest: "/etc/transmission-daemon/settings-ansible.json"
|
||||
owner: debian-transmission
|
||||
group: debian-transmission
|
||||
mode: "0750"
|
||||
become: true
|
||||
notify: update transmission settings
|
||||
Loading…
Add table
Add a link
Reference in a new issue