diff --git a/apps/traktarr.yml b/apps/traktarr.yml new file mode 100644 index 0000000..abee702 --- /dev/null +++ b/apps/traktarr.yml @@ -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