feat: add jackett server & conf
This commit is contained in:
@@ -1,13 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Sonarr Service
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=debian-transmission
|
|
||||||
Group=debian-transmission
|
|
||||||
ExecStart=/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser
|
|
||||||
Type=simple
|
|
||||||
TimeoutStopSec=20
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@@ -14,3 +14,10 @@
|
|||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: exportfs -a
|
cmd: exportfs -a
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|
||||||
|
- name: Restart jackett
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
name: jackett
|
||||||
|
daemon_reload: true
|
||||||
|
enabled: true
|
||||||
|
state: restarted
|
||||||
|
25
roles/bittorrent/tasks/jackett.yml
Normal file
25
roles/bittorrent/tasks/jackett.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Create jackett user
|
||||||
|
ansible.builtin.user:
|
||||||
|
comment: jackett
|
||||||
|
home: "{{ jackett_home }}"
|
||||||
|
name: jackett
|
||||||
|
password: '!'
|
||||||
|
shell: /bin/bash
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Unzip jackett
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
src: "{{ jackett_download_url }}"
|
||||||
|
remote_src: true
|
||||||
|
dest: "/opt"
|
||||||
|
owner: jackett
|
||||||
|
group: jackett
|
||||||
|
|
||||||
|
- name: Install jackett systemd file
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: jackett.service.j2
|
||||||
|
dest: /etc/systemd/system/jackett.service
|
||||||
|
mode: 0644
|
||||||
|
notify: Restart jackett
|
@@ -4,6 +4,8 @@
|
|||||||
ansible.builtin.include_tasks: transmission.yml
|
ansible.builtin.include_tasks: transmission.yml
|
||||||
- name: Include sonarr
|
- name: Include sonarr
|
||||||
ansible.builtin.include_tasks: sonarr.yml
|
ansible.builtin.include_tasks: sonarr.yml
|
||||||
|
- name: Include jackett
|
||||||
|
ansible.builtin.include_tasks: jackett.yml
|
||||||
- name: Include subliminal
|
- name: Include subliminal
|
||||||
ansible.builtin.include_tasks: subliminal.yml
|
ansible.builtin.include_tasks: subliminal.yml
|
||||||
- name: Include nfsclient
|
- name: Include nfsclient
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Install sonarr repokey
|
- name: Install sonarr repokey
|
||||||
ansible.builtin.apt_key:
|
ansible.builtin.get_url:
|
||||||
keyserver: keyserver.ubuntu.com
|
url: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xa236c58f409091a18aca53cbebff6b99d9b78493
|
||||||
id: "0xa236c58f409091a18aca53cbebff6b99d9b78493"
|
dest: /etc/apt/trusted.gpg.d/sonarr.asc
|
||||||
|
|
||||||
- name: Install sonarr repo
|
- name: Install sonarr repo
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
|
17
roles/bittorrent/templates/jackett.service.j2
Normal file
17
roles/bittorrent/templates/jackett.service.j2
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Jackett Daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
SyslogIdentifier=jackett
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
Type=simple
|
||||||
|
User=jackett
|
||||||
|
Group=jackett
|
||||||
|
WorkingDirectory={{ jackett_home }}
|
||||||
|
ExecStart=/bin/sh "{{ jackett_home }}/jackett_launcher.sh"
|
||||||
|
TimeoutStopSec=30
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
5
roles/bittorrent/vars/main.yml
Normal file
5
roles/bittorrent/vars/main.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
jackett_version: "v0.21.589"
|
||||||
|
jackett_download_url: "https://github.com/Jackett/Jackett/releases/download/{{ jackett_version }}/Jackett.Binaries.LinuxAMDx64.tar.gz"
|
||||||
|
jackett_home: "/opt/Jackett"
|
8
roles/nginx/templates/vhosts/jackett.mateu.be.conf.j2
Normal file
8
roles/nginx/templates/vhosts/jackett.mateu.be.conf.j2
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
server {
|
||||||
|
{% include './templates/header.conf.j2' %}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:9117;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user