Skip to content

Commit

Permalink
Adding support for installing on ubuntu 18 (#8)
Browse files Browse the repository at this point in the history
Updating the defaults variable to the latest released version of Jackett
  • Loading branch information
chrisjohnson00 authored Sep 22, 2018
1 parent 725f03f commit 8c20a54
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Jackett
=========

This is an ansible role to install [**Jackett**][1] on Ubuntu 16.04
This is an ansible role to install [**Jackett**][1] on Ubuntu 16.04 or 18.04

Requirements
------------
Expand Down Expand Up @@ -42,7 +42,7 @@ MIT
Contributing
-------

I use [vagrant][2] to test my changes on my local, in order to do this effectivly I need to create a symbolic link so ansible knows how to find the role under `./roles/chrisjohnson00.jacket`, on my local I do something like `ln -s ~/IdeaProjects/ansible-role-jackett ~/IdeaProjects/ansible-role-jackett/roles/chrisjohnson00.jackett`. If you do choose to contribute, thank you, please ensure the tests pass before submitting a PR.
I use [vagrant][2] to test my changes on my local, in order to do this effectively I need to create a symbolic link so ansible knows how to find the role under `./roles/chrisjohnson00.jacket`, on my local I do something like `ln -s ~/IdeaProjects/ansible-role-jackett ~/IdeaProjects/ansible-role-jackett/roles/chrisjohnson00.jackett`. If you do choose to contribute, thank you, please ensure the tests pass before submitting a PR.

[1]: https://github.com/Jackett/Jackett
[2]: http://www.vagrantup.com
5 changes: 3 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
#config.vm.box = "bento/ubuntu-16.04"
config.vm.box = "ubuntu/bionic64"

#jacket
config.vm.network "forwarded_port", guest: 9117, host: 9117
Expand All @@ -25,7 +26,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
ansible.sudo = true
ansible.verbose = true #set this to true if you want to see all the output
ansible.verbose = false #set this to true if you want to see all the output
ansible.limit = "all"
end

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# defaults file for chrisjohnson00.jacket

chrisjohnson00_jackett_packages: ["mono-devel","libcurl4-openssl-dev","ca-certificates-mono"]
chrisjohnson00_jackett_version: "v0.9.41" # found on https://github.com/Jackett/Jackett/releases
chrisjohnson00_jackett_version: "v0.10.198" # 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"
Expand Down
4 changes: 4 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@

- name: with yourself
hosts: all
gather_facts: False
pre_tasks:
- raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
- setup: # aka gather_fact
roles:
- { role: chrisjohnson00.jackett, tags: ["jackett"]}
9 changes: 8 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,17 @@
keyserver: hkp://keyserver.ubuntu.com:80
id: 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

- name: "adding repo for mono5"
- name: "adding repo for mono5 for ubuntu 16"
apt_repository:
repo: deb http://download.mono-project.com/repo/ubuntu xenial main
state: present
when: ansible_distribution_major_version == "16"

- name: "adding repo for mono5 for ubuntu 18"
apt_repository:
repo: deb http://download.mono-project.com/repo/ubuntu stable-bionic main
state: present
when: ansible_distribution_major_version == "18"

- name: Only run apt-get update if the last one is more than 3600 seconds ago
apt:
Expand Down

0 comments on commit 8c20a54

Please sign in to comment.