Merge branch 'sickrage-to-sickchill' of git://github.com/l3rady/ansible-nas into l3rady-sickrage-to-sickchill

* 'sickrage-to-sickchill' of git://github.com/l3rady/ansible-nas:
  Allow sickchill downloads path to be fully managed by sickchill_downloads_directory variable
  Remove old sickrage container first but keep volumes to allow migration
  Rename sickrage task to sickchill
  Change all text instances of sickrage to sickchill
This commit is contained in:
David Stephens 2019-04-23 23:22:50 +01:00
commit 5c1459068d
8 changed files with 56 additions and 50 deletions

View file

@ -10,7 +10,7 @@ just a stock Ubuntu install, some clever Ansible config and a bunch of Docker co
* An awesome dashboard to your home server (Heimdall)
* Any number of Samba shares or NFS exports for you to store your stuff
* A BitTorrent client
* Various media management tools - Sonarr, Sickrage, CouchPotato, Radarr
* Various media management tools - Sonarr, Sickchill, CouchPotato, Radarr
* Media streaming via Plex or Emby
* Music streaming with Airsonic
* An RSS newsfeed reader - Miniflux
@ -47,7 +47,7 @@ just a stock Ubuntu install, some clever Ansible config and a bunch of Docker co
* [Plex](https://www.plex.tv/) - Plex Media Server
* [Portainer](https://portainer.io/) - for managing Docker and running custom images
* [Radarr](https://radarr.video/) - for organising and downloading movies
* [Sickrage](https://sickrage.github.io/) - for managing TV episodes
* [Sickchill](https://sickchill.github.io/) - for managing TV episodes
* [Sonarr](https://sonarr.tv/) - for downloading and managing TV episodes
* [Tautulli](http://tautulli.com/) - Monitor Your Plex Media Server
* [Telegraf](https://github.com/influxdata/telegraf) - Metrics collection agent

View file

@ -26,7 +26,7 @@ By default, applications can be found on the ports listed below.
| Plex | 32400 | |
| Portainer | 9000 | |
| Radarr | 7878 | |
| Sickrage | 8081 | |
| Sickchill | 8081 | |
| Sonarr | 8989 | |
| Tautulli | 8181 | |
| The Lounge | 9000 | |

View file

@ -9,7 +9,7 @@ Ansible config and a bunch of Docker containers. Ansible-NAS was born!
* An awesome dashboard to your home server (Heimdall)
* Any number of Samba shares for you to store your stuff
* A BitTorrent client
* Various media management tools - Sonarr, Sickrage, CouchPotato, Radarr
* Various media management tools - Sonarr, Sickchill, CouchPotato, Radarr
* Media streaming via Plex, Emby or MiniDLNA
* Music streaming with Airsonic
* A Dropbox replacement via Nextcloud

View file

@ -28,7 +28,7 @@ minidlna_enabled: false
# Media Sourcing
sonarr_enabled: false
sickrage_enabled: false
sickchill_enabled: false
couchpotato_enabled: false
radarr_enabled: false
get_iplayer_enabled: false
@ -355,14 +355,14 @@ couchpotato_group_id: 0
###
### Sickrage
### Sickchill
###
sickrage_available_externally: "false"
sickrage_config_directory: "{{ docker_home }}/sickrage/config"
sickrage_tv_directory: "{{ tv_root }}"
sickrage_downloads_directory: "{{ downloads_root }}"
sickrage_user_id: 0
sickrage_group_id: 0
sickchill_available_externally: "false"
sickchill_config_directory: "{{ docker_home }}/sickchill/config"
sickchill_tv_directory: "{{ tv_root }}"
sickchill_downloads_directory: "{{ downloads_root }}/completed"
sickchill_user_id: 0
sickchill_group_id: 0
###
### Netdata

View file

@ -92,9 +92,9 @@
when: (couchpotato_enabled | default(False))
tags: couchpotato
- import_tasks: tasks/sickrage.yml
when: (sickrage_enabled | default(False))
tags: sickrage
- import_tasks: tasks/sickchill.yml
when: (sickchill_enabled | default(False))
tags: sickchill
- import_tasks: tasks/znc.yml
when: (znc_enabled | default(False))

37
tasks/sickchill.yml Normal file
View file

@ -0,0 +1,37 @@
---
- name: Remove Old Sickrage Docker Container
docker_container:
name: sickrage
state: absent
keep_volumes: true
- name: Create Sickchill Directories
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ sickchill_config_directory }}"
- name: Sickchill Docker Container
docker_container:
name: sickchill
image: linuxserver/sickchill
pull: true
volumes:
- "{{ sickchill_config_directory }}:/config:rw"
- "{{ sickchill_downloads_directory }}:/downloads:rw"
- "{{ sickchill_tv_directory }}:/tv:rw"
ports:
- "8081:8081"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sickchill_user_id }}"
PGID: "{{ sickchill_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "sickchill"
traefik.frontend.rule: "Host:sickchill.{{ ansible_nas_domain }}"
traefik.enable: "{{ sickchill_available_externally }}"
traefik.port: "8081"

View file

@ -1,31 +0,0 @@
---
- name: Create Sickrage Directories
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ sickrage_config_directory }}"
- name: Sickrage Docker Container
docker_container:
name: sickrage
image: linuxserver/sickrage
pull: true
volumes:
- "{{ sickrage_config_directory }}:/config:rw"
- "{{ sickrage_downloads_directory }}/completed:/downloads:rw"
- "{{ sickrage_tv_directory }}:/tv:rw"
ports:
- "8081:8081"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sickrage_user_id }}"
PGID: "{{ sickrage_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "sickrage"
traefik.frontend.rule: "Host:sickrage.{{ ansible_nas_domain }}"
traefik.enable: "{{ sickrage_available_externally }}"
traefik.port: "8081"

View file

@ -196,7 +196,7 @@ onDemand = false # create certificate when container is created
"plex.{{ ansible_nas_domain }}",
"portainer.{{ ansible_nas_domain }}",
"radarr.{{ ansible_nas_domain }}",
"sickrage.{{ ansible_nas_domain }}",
"sickchill.{{ ansible_nas_domain }}",
"sonarr.{{ ansible_nas_domain }}",
"tautulli.{{ ansible_nas_domain }}",
"thelounge.{{ ansible_nas_domain }}",