mirror of
https://github.com/lemeow125/ansible-playbooks.git
synced 2025-05-17 12:08:04 +08:00
Update playbooks
This commit is contained in:
parent
46250f9a99
commit
2150c17f24
14 changed files with 315 additions and 9 deletions
22
roles/files/debian/setup/crontabs/root
Normal file
22
roles/files/debian/setup/crontabs/root
Normal file
|
@ -0,0 +1,22 @@
|
|||
# VIM Default Editor
|
||||
@reboot export VISUAL=vim
|
||||
@reboot export EDITOR=vim
|
||||
|
||||
# Fix tmux bug
|
||||
@reboot tmux
|
||||
|
||||
# Network mount
|
||||
* * * * * mount.cifs "//255.255.255.0/SAMBA-MOUNT" "/mnt/backups/" -o credentials="/root/.samba/credentials"
|
||||
|
||||
# Start services
|
||||
@reboot sleep 30 && tmux new-session -d -s "start_services" "bash /root/scripts/start_services.sh"
|
||||
|
||||
# Backups
|
||||
0 */4 * * * tmux new-session -d -s "Borg Backups" bash /root/scripts/backup.sh
|
||||
|
||||
# Docker Cleanup
|
||||
0 0 1 * * docker system prune --all --volumes --force
|
||||
|
||||
# ACME
|
||||
52 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
|
||||
0 */7 * * * tmux new-session -d -s "Acme SSL Updater" bash /root/scripts/acme_ssl.sh
|
Loading…
Add table
Add a link
Reference in a new issue