forked from justinglock40/Apps-Community-Test
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ed1b2f
commit 0b80a7b
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |