Skip to content

Commit

Permalink
traktarr cron update
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 16, 2019
1 parent f6a010c commit 3940dc1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions menu/traktarr/_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- cron:
name: Daily automatic add preconf lists for filling
special_time: 'daily'
job: 'bash /opt/appdata/traktarr/traktarr-list/traktarr.sh'
state: present
9 changes: 3 additions & 6 deletions menu/traktarr/traktarr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
pgrole: 'traktarr'
extport: '0'

- name: 'Including cron job'
include_tasks: '/opt/plexguide/menu/traktarr/traktarr-list/_cron.yml'

- name: Server ID
shell: 'cat /var/plexguide/pg.serverid'
register: serverid
Expand Down Expand Up @@ -91,12 +94,6 @@
mode: a+x
force: yes

- cron:
name: Daily automatic add preconf lists for filling
special_time: 'daily'
job: 'bash /opt/appdata/traktarr/traktarr-list/traktarr.sh'
state: present

- name: Import default config
template:
src: /opt/appdata/traktarr/config.json.sample
Expand Down

0 comments on commit 3940dc1

Please sign in to comment.