2015-05-29 19:42:43 +02:00
|
|
|
---
|
|
|
|
- name: Install a script that performs mysql dumps
|
2016-01-11 11:00:55 +01:00
|
|
|
copy: src=mysql-backup.sh dest=/usr/local/sbin/mysql-backup owner=root group=root mode=0750
|
2015-07-14 00:30:49 +02:00
|
|
|
tags: [ 'mysql', 'mysql_backup' ]
|
|
|
|
|
|
|
|
- name: Install the mysql backup defaults
|
|
|
|
template: src=mysql_backup-default.j2 dest=/etc/default/mysql_backup owner=root group=root mode=0440
|
|
|
|
tags: [ 'mysql', 'mysql_backup' ]
|
2015-05-29 19:42:43 +02:00
|
|
|
|
|
|
|
- name: Cron job that executes mysql nightly backups
|
2016-01-11 11:00:55 +01:00
|
|
|
copy: src=mysql-backup.cron dest=/etc/cron.daily/mysql-backup owner=root group=root mode=0755
|
2015-07-14 00:30:49 +02:00
|
|
|
tags: [ 'mysql', 'mysql_backup' ]
|