feat: add jackett server & conf

This commit is contained in:
VC
2024-07-05 11:53:41 +02:00
parent f19da209fe
commit 3aa021d748
8 changed files with 67 additions and 16 deletions

View File

@@ -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

View File

@@ -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

View 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

View File

@@ -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

View File

@@ -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:

View 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

View 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"

View File

@@ -0,0 +1,8 @@
server {
{% include './templates/header.conf.j2' %}
location / {
proxy_pass http://localhost:9117;
}
}