forked from HawksRepos/PTS-Team
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove old garbage files and cronjobs
- Loading branch information
MrDoobPG
authored and
MrDoobPG
committed
Nov 21, 2019
1 parent
ddf0784
commit 8f9f2fd
Showing
5 changed files
with
32 additions
and
93 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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' |