Configure backups more appropriately across servers
This commit is contained in:
parent
44b3b99990
commit
f8adc3cd10
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/ansible-playbook
|
#!/usr/bin/ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
|
backups_hour: "*/6"
|
||||||
mcheapmax: 4096
|
mcheapmax: 4096
|
||||||
mcheapmin: 1024
|
mcheapmin: 1024
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
#!/usr/bin/ansible-playbook
|
#!/usr/bin/ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
backups_outdir: "/opt/backups/out"
|
backups_outdir: "/opt/backups/out"
|
||||||
|
backups_hour: "2"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
- name: Set backup cronjob
|
- name: Set backup cronjob
|
||||||
cron:
|
cron:
|
||||||
minute: "0"
|
minute: "0"
|
||||||
hour: "*/6"
|
hour: "{{ backups_hour }}"
|
||||||
name: ansible-backup
|
name: ansible-backup
|
||||||
job: "/opt/backups/backup.sh >> /backups/backups.log 2>&1"
|
job: "/opt/backups/backup.sh >> /backups/backups.log 2>&1"
|
||||||
become: yes
|
become: yes
|
||||||
|
Loading…
Reference in New Issue
Block a user