Add sickrage and znc

This commit is contained in:
David Stephens 2017-11-21 22:18:35 +00:00
parent 88a598f260
commit aedc81907d
4 changed files with 94 additions and 2 deletions

View file

@ -21,6 +21,9 @@ glances_enabled: true
crashplan_enabled: true
duplicati_enabled: true
# other stuff
znc_enabled: true
###
### General
@ -147,6 +150,16 @@ couchpotato_user_id: 0
couchpotato_group_id: 0
###
### Sickrage
###
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
###
### OpenVPN
###
@ -165,4 +178,9 @@ portainer_data_directory: "{{ docker_home }}/portainer/config"
crashplan_user_id: 0
crashplan_group_id: 0
###
### ZNC
###
znc_data_directory: "{{ docker_home }}/znc"
znc_user_id: 0
znc_group_id: 0

View file

@ -1,19 +1,44 @@
---
- include: general.yml
- include: docker.yml
- include: portainer.yml
when: portainer_enabled == true
tags: portainer
- include: transmission.yml
when: transmission_enabled == true
tags: transmission
- include: transmission_with_openvpn.yml
when: transmission_with_openvpn_enabled == true
tags: transmission
- include: sonarr.yml
when: sonarr_enabled == true
tags: sonarr
- include: glances.yml
when: glances_enabled == true
tags: glances
- include: duplicati.yml
when: duplicati_enabled == true
tags: duplicati
- include: crashplan.yml
when: crashplan_enabled == true
tags: crashplan
- include: couchpotato.yml
when: couchpotato_enabled == true
when: couchpotato_enabled == true
tags: couchpotato
- include: sickrage.yml
when: sickrage_enabled == true
tags: sickrage
- include: znc.yml
when: znc_enabled == true
tags: znc

View file

@ -0,0 +1,26 @@
---
- 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"
- "/etc/timezone:/etc/timezone:ro"
ports:
- "8081:8081"
env:
PUID: "{{ sickrage_user_id }}"
PGID: "{{ sickrage_group_id }}"
restart_policy: unless-stopped
memory: 1g

View file

@ -0,0 +1,23 @@
---
- name: Create ZNC Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ znc_data_directory }}"
- name: ZNC
docker_container:
name: znc
image: znc
pull: true
volumes:
- "{{ znc_data_directory }}:/znc-data:rw"
- "/etc/timezone:/etc/timezone:ro"
ports:
- "6677:6677"
env:
PUID: "{{ znc_user_id }}"
PGID: "{{ znc_group_id }}"
restart_policy: unless-stopped
memory: 1g