Added some mysql variables and allowed forcing config update

The default behaviour is kept, but this way we can manage a mysql
installation from ansible.
This commit is contained in:
Patrick Marchand 2020-01-13 17:23:34 +01:00
parent d15819fb04
commit b80f3993ae
4 changed files with 11 additions and 2 deletions

View File

@ -28,6 +28,8 @@ mysql_tmp_table_size: Null
mysql_max_heap_table_size: Null
mysql_query_cache_limit: Null
mysql_query_cache_size: Null
mysql_max_allowed_packet: Null
mysql_force_custom_config: 'no'
mysql_cron_optimize: True
mysql_cron_optimize_frequency: weekly

View File

@ -21,6 +21,6 @@
owner: root
group: root
mode: "0644"
force: no
force: "{{ mysql_force_custom_config }}"
tags:
- mysql

View File

@ -21,7 +21,7 @@
owner: root
group: root
mode: "0644"
force: no
force: "{{ mysql_force_custom_config }}"
tags:
- mysql

View File

@ -29,4 +29,11 @@ query_cache_limit = {{ mysql_query_cache_limit }}
{% if mysql_query_cache_limit %}
query_cache_size = {{ mysql_query_cache_size }}
{% endif %}
{% if mysql_max_allowed_packet %}
max_allowed_packet = {{ mysql_max_allowed_packet }}
{% endif %}
{% if mysql_lower_case_table_names %}
lower_case_table_names = {{ mysql_lower_case_table_names }}
{% endif %}