Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/etc_mysql_my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down