roles/mariadb: Create utf8mb4 databases by default

This is better for supporting Unicode values in the database, see:

https://mathiasbynens.be/notes/mysql-utf8mb4

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-12-08 17:27:37 +02:00
parent a7094e0964
commit 805db6a9ef
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -34,7 +34,7 @@
tags: mariadb
- name: Create WordPress database(s)
mysql_db: db={{ item.wordpress_db_name }} state=present
mysql_db: db={{ item.wordpress_db_name }} state=present encoding=utf8mb4
with_items: wordpress_blogs
when: wordpress_blogs is defined
tags: mariadb