Skip to content

Commit

Permalink
Resolving Issue #6 (#7)
Browse files Browse the repository at this point in the history
Rearranged the default variables
Added a new variable to disable auto update via jackett
Removed ignore ssl errors
Updated service declaration to match Jackett documentation
  • Loading branch information
chrisjohnson00 authored Aug 6, 2018
1 parent 6766967 commit 725f03f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
7 changes: 4 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# defaults file for chrisjohnson00.jacket

chrisjohnson00_jackett_packages: ["mono-devel","libcurl4-openssl-dev","ca-certificates-mono"]
chrisjohnson00_jackett_version: "v0.8.259" # found on https://github.com/Jackett/Jackett/releases
chrisjohnson00_jackett_version: "v0.9.41" # found on https://github.com/Jackett/Jackett/releases
# jackett.service.ini values
chrisjohnson00_jackett_no_update: "true" # since we want to manage the version upgrades/etc as part of the playbook, we disable auto updates
chrisjohnson00_jackett_user: "jackett"
chrisjohnson00_jackett_ignore_ssl_errors: "false"
# ServerConfig.json values
chrisjohnson00_jackett_port: 9117
chrisjohnson00_jackett_allow_external: "true"
Expand All @@ -18,4 +19,4 @@ chrisjohnson00_jackett_base_path_override: "" #use "" for no override
chrisjohnson00_jackett_omdb_api_key: "" #use "" for no key
# Indexers to load
chrisjohnson00_jackett_load_indexers: false
chrisjohnson00_jackett_indexer_path: "" #should end in a /
chrisjohnson00_jackett_indexer_path: "" #should end in a /
16 changes: 9 additions & 7 deletions templates/jackett.service.ini
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
[Unit]
Description=jackett
Description=Jackett Daemon
After=network.target

[Service]
Type=simple
PermissionsStartOnly=true
ExecStart=/usr/bin/mono /opt/jackett/{{ chrisjohnson00_jackett_version }}/Jackett/JackettConsole.exe --IgnoreSslErrors {{ chrisjohnson00_jackett_ignore_ssl_errors }}
Restart=on-failure
TimeoutStopSec=60
WorkingDirectory=/opt/jackett/{{ chrisjohnson00_jackett_version }}/Jackett/
User={{ chrisjohnson00_jackett_user }}
Environment=MONO_TLS_PROVIDER=legacy
ExecStart=/usr/bin/mono JackettConsole.exe --NoRestart {% if chrisjohnson00_jackett_no_update %}--NoUpdates
{% endif %}
Restart=always
RestartSec=2
Type=simple
TimeoutStopSec=5
SyslogIdentifier=jackett

[Install]
WantedBy=multi-user.target

0 comments on commit 725f03f

Please sign in to comment.