Skip to content

Commit

Permalink
Create traktarr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smashingtags authored Mar 20, 2021
1 parent 0ed1b2f commit 0b80a7b
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions apps/traktarr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#
################################################################################
---
- hosts: localhost
gather_facts: false
tasks:
# FACTS #######################################################################

- name: 'Set Known Facts'
set_fact:
pgrole: 'traktarr'
image: 'eafxx/traktarr:latest'

# CORE (MANDATORY) ############################################################
- name: 'Including cron job'
include_tasks: '/opt/communityapps/apps/_core.yml'



- name: 'Setting {{pgrole}} Volumes'
set_fact:
pg_volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/opt/appdata/traktarr:/app/config:rw'

- name: 'Setting {{pgrole}} ENV'
set_fact:
pg_env:
PUID: '1000'
PGID: '1000'
DELAY: '2.5'
SORT: 'rating'
NOSEARCH: 'yes'
NOTIFICATIONS: 'no'
BLACKLIST: 'yes'
RUNNOW: 'yes'
SKIPUPDATE: 'no'
APP_BRANCH: 'master'

# MAIN DEPLOYMENT #############################################################
- name: 'Deploying {{pgrole}}'
docker_container:
name: '{{pgrole}}'
image: '{{image}}'
pull: yes
volumes: '{{pg_volumes}}'
env: '{{pg_env}}'
restart_policy: unless-stopped
networks:
- name: plexguide
aliases:
- '{{pgrole}}'
state: started

0 comments on commit 0b80a7b

Please sign in to comment.