From a83a2a3454c334c21fa19c747dc7bdd0c3cc3fe4 Mon Sep 17 00:00:00 2001 From: Robert Baker Date: Tue, 12 Feb 2019 11:31:08 -0700 Subject: [PATCH] fix cron removal --- menu/roles/autodelete/tasks/main.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/menu/roles/autodelete/tasks/main.yml b/menu/roles/autodelete/tasks/main.yml index 74a4668dd8..255e8aad0c 100755 --- a/menu/roles/autodelete/tasks/main.yml +++ b/menu/roles/autodelete/tasks/main.yml @@ -1,42 +1,37 @@ #!/bin/bash # # Title: PlexGuide (Reference Title File) -# Author(s): Admin9705 - Deiteq +# Author(s): Admin9705 # URL: https://plexguide.com - http://github.plexguide.com # GNU: General Public License v3.0 ################################################################################ --- -- cron: +- name: Remove old NZBGET job + cron: name: Build a Cron Job - NZBGET - special_time: "hourly" - job: "bash /opt/plexguide/menu/roles/autodelete/scripts/nzbget.sh" state: absent ignore_errors: yes -- cron: +- name: Remove old SABNZBD job + cron: name: Build a Cron Job - SABNZBD - special_time: "hourly" - job: "bash /opt/plexguide/menu/roles/autodelete/scripts/sabnzbd.sh" state: absent ignore_errors: yes -- cron: +- name: Remove old DELUGE job + cron: name: Build a Cron Job - DELUGE - special_time: 'hourly' - job: "bash /opt/plexguide/menu/roles/autodelete/scripts/deluge.sh" state: absent ignore_errors: yes -- cron: +- name: Remove old RUTORRENT job + cron: name: Build a Cron Job - RUTORRENT - special_time: 'hourly' - job: "bash /opt/plexguide/menu/roles/autodelete/scripts/rutorrent.sh" state: absent ignore_errors: yes -- cron: +- name: Remove old QBITTORRENT job + cron: name: Build a Cron Job - QBITTORRENT - special_time: 'hourly' - job: "bash /opt/plexguide/menu/roles/autodelete/scripts/qbittorrent.sh" state: absent ignore_errors: yes