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

- 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