roles/mariadb: Manage /etc/mysql/my.cnf

Set some sane defaults and manage the config file with a template.
This commit is contained in:
2016-04-22 10:08:32 +03:00
parent ebf79c5b07
commit bedc820312
4 changed files with 228 additions and 0 deletions

View File

@ -14,6 +14,12 @@
- python-mysqldb # for ansible
tags: mariadb
- name: Create system my.cnf
template: src=my.cnf.j2 dest=/etc/mysql/my.cnf owner=root group=root mode=0644
notify:
- restart mysql
tags: mariadb
- name: Start and enable MariaDB Service
service: name=mysql state=started enabled=true
tags: mariadb