2015-05-29 19:42:43 +02:00
|
|
|
---
|
|
|
|
- name: Install a script that performs mysql dumps
|
|
|
|
copy: src=mysql-backup.sh dest=/usr/local/bin/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
|
|
|
|
copy: src=mysql-backup.cron dest=/etc/cron.d/mysql-backup owner=root group=root mode=0644
|
2015-07-14 00:30:49 +02:00
|
|
|
tags: [ 'mysql', 'mysql_backup' ]
|