library/roles/mysql/defaults/main.yml: MySQL backup minute and hour are now customizable.

This commit is contained in:
Andrea Dell'Amico 2015-12-20 15:28:22 +01:00
parent 7e5a192ca2
commit 344b80ea8b
3 changed files with 3 additions and 1 deletions

View File

@ -44,4 +44,6 @@ mysql_backup_logfile: '{{ mysql_backup_logdir }}/my_backup.log'
mysql_backup_retain_copies: 15 mysql_backup_retain_copies: 15
mysql_backup_destdir: /var/lib/mysql-backup mysql_backup_destdir: /var/lib/mysql-backup
mysql_backup_exclude_list: "performance_schema" mysql_backup_exclude_list: "performance_schema"
mysql_backup_crontab_minute: 0
mysql_backup_crontab_hour: 2

View File

@ -1 +0,0 @@
0 0 * * * root /usr/local/bin/mysql-backup > /var/log/mysql-backup.log 2>&1

View File

@ -0,0 +1 @@
{{ mysql_backup_crontab_minute }} {{ mysql_backup_crontab_hour }} * * * root /usr/local/bin/mysql-backup > /var/log/mysql-backup.log 2>&1