Skip to content

Commit

Permalink
role remove added
Browse files Browse the repository at this point in the history
remove old garbage files and cronjobs
  • Loading branch information
MrDoobPG authored and MrDoobPG committed Nov 21, 2019
1 parent ddf0784 commit 8f9f2fd
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 93 deletions.
5 changes: 5 additions & 0 deletions menu/functions/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ file="/opt/plexguide/menu/pg.yml"
else ansible-playbook opt/plexguide/menu/version/missing_pull.yml; fi
}

remove(){
ansible-playbook /opt/plexguide/menu/pg.yml --tag remove
}

templatespart2() {
remove
alias 1>/dev/null 2>&1
owned 1>/dev/null 2>&1
check
Expand Down
1 change: 1 addition & 0 deletions menu/pg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
- { role: journal, tags: ['journal'] }
- { role: plex_autoscan, tags: ['plex_autoscan'] }
- { role: plex_dupefinder, tags: ['plex_dupefinder'] }
- { role: remove, tags: ['remove'] }
40 changes: 0 additions & 40 deletions menu/roles/clean-encrypt/tasks/main.yml

This file was deleted.

53 changes: 0 additions & 53 deletions menu/roles/clean-encrypt/templates/config.js2

This file was deleted.

26 changes: 26 additions & 0 deletions menu/roles/remove/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
#
# Title: PTS remove old garbage
# YML Author: MrDoob for PTS
# GNU: General Public License v3.0
################################################################################
---
- name: Remove Cloudplow | remove old cronjob
cron:
name: 'Cloudplow Clean'
user: 'root'
state: absent

- name: Remove Cloudplow | directory
file:
state: absent
path: '/opt/appdata/cloudplow'

- name: Remove Cloudplow | unused cronjob
cron:
state: absent
name: 'Cloudplow Clean'
user: 'root'
minute: '0'
hour: '0'
job: 'cd /opt/appdata/cloudplow && /usr/bin/python3 cloudplow.py clean'

0 comments on commit 8f9f2fd

Please sign in to comment.