summaryrefslogtreecommitdiffstats
path: root/roles/mariadb/tasks/main.yml
blob: 2327e80808f33a9dcbae9b942e1abd34b3746454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- yum: name={{ item }} state=installed
  with_items:
  - mariadb-server
  - MySQL-python

- template: src=custom.cnf dest=/etc/my.cnf.d/custom.cnf
  notify: restart mariadb

- service: name=mariadb enabled=yes state=started

- copy: mode=0755 src=dump_mariadb.sh dest=/usr/local/bin/dump_mariadb.sh

- cron: minute=15 hour=4 name="backup mariadb" job=/usr/local/bin/dump_mariadb.sh