Configure backups more appropriately across servers

This commit is contained in:
Salt 2020-06-23 09:52:55 -05:00
parent 44b3b99990
commit f8adc3cd10
3 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
backups_hour: "*/6"
mcheapmax: 4096
mcheapmin: 1024

View File

@ -1,3 +1,4 @@
#!/usr/bin/ansible-playbook
# vim:ft=ansible:
backups_outdir: "/opt/backups/out"
backups_hour: "2"

View File

@ -25,7 +25,7 @@
- name: Set backup cronjob
cron:
minute: "0"
hour: "*/6"
hour: "{{ backups_hour }}"
name: ansible-backup
job: "/opt/backups/backup.sh >> /backups/backups.log 2>&1"
become: yes