Add minecraft backup clean up cron job

This commit is contained in:
Ryan Cavicchioni 2019-11-03 11:31:37 -06:00
parent 33e83dd740
commit 140932154d
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -122,6 +122,14 @@
user: root
job: "{{ minecraft_opt_path }}/bin/minecraft-backup"
- name: backup clean up cron
cron:
name: minecraft backup clean up
minute: "0"
hour: "10"
user: root
job: "find {{ minecraft_opt_path }}/backup/ -type f -name '*.tar.xz' -ctime +7 -delete"
- name: set world download password
htpasswd:
path: "{{ minecraft_opt_path }}/etc/htpasswd"