First commit
This commit is contained in:
34
roles/bittorrent/tasks/sonarr.yml
Normal file
34
roles/bittorrent/tasks/sonarr.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
- name: install sonarr repokey
|
||||
apt_key:
|
||||
keyserver: keyserver.ubuntu.com
|
||||
id: "0xa236c58f409091a18aca53cbebff6b99d9b78493"
|
||||
|
||||
- name: install sonarr repo
|
||||
apt_repository:
|
||||
repo: deb http://apt.sonarr.tv/ master main
|
||||
state: present
|
||||
|
||||
- name: create sonarr conf dir
|
||||
file:
|
||||
path: /var/lib/transmission-daemon/.config/NzbDrone
|
||||
recurse: True
|
||||
owner: debian-transmission
|
||||
group: debian-transmission
|
||||
mode: "a-rwx,u+rwX,g+rX"
|
||||
|
||||
- name: install sonarr
|
||||
package:
|
||||
name: nzbdrone
|
||||
state: present
|
||||
|
||||
- name: copy systemd file
|
||||
copy:
|
||||
src: files/sonarr.service
|
||||
dest: /etc/systemd/system/sonarr.service
|
||||
notify:
|
||||
- restart sonarr
|
||||
|
||||
- name: enable sonarr service
|
||||
service:
|
||||
name: sonarr
|
||||
enabled: True
|
Reference in New Issue
Block a user