From 7027c515d408332ecf84a1107f9c6f772a493ea2 Mon Sep 17 00:00:00 2001 From: Einar Felipe Lanfranco Date: Tue, 16 Jan 2018 14:11:17 -0300 Subject: [PATCH 1/2] Upgrade to fix problems with Mysql > 5.7 or Ubuntu 16.04 --- tasks/configure.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 3c949ed..1e6ca75 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -1,5 +1,8 @@ # file: mysql/tasks/configure.yml - +- name: Obtaining MySQL version + command: mysql --version + register: mysql_version + - name: MySQL | Update the my.cnf template: src: etc_mysql_my.cnf.j2 From a1849e48c90df268cd2efc263fe1bb58570a934f Mon Sep 17 00:00:00 2001 From: Einar Felipe Lanfranco Date: Tue, 16 Jan 2018 14:16:31 -0300 Subject: [PATCH 2/2] Update etc_mysql_my.cnf.j2 --- templates/etc_mysql_my.cnf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etc_mysql_my.cnf.j2 b/templates/etc_mysql_my.cnf.j2 index 1f61bf0..13c4cda 100644 --- a/templates/etc_mysql_my.cnf.j2 +++ b/templates/etc_mysql_my.cnf.j2 @@ -33,7 +33,7 @@ thread_cache_size = {{ mysql_cache_size }} max_connections = {{ mysql_max_connections }} table_open_cache = {{ mysql_table_cache }} max_allowed_packet = {{ mysql_max_allowed_packet }} -{% if not '5.7' in mysql_ppa %} +{% if not '5.7' in mysql_version.stdout %} # ** Not compatible with 5.7 key_buffer = {{ mysql_key_buffer }} myisam-recover = {{ mysql_myisam_recover }}