forked from evolix/ansible-roles
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:
parent
18878d58e8
commit
c142af69f0
|
@ -28,6 +28,8 @@ mysql_tmp_table_size: Null
|
||||||
mysql_max_heap_table_size: Null
|
mysql_max_heap_table_size: Null
|
||||||
mysql_query_cache_limit: Null
|
mysql_query_cache_limit: Null
|
||||||
mysql_query_cache_size: Null
|
mysql_query_cache_size: Null
|
||||||
|
mysql_max_allowed_packet: Null
|
||||||
|
mysql_force_custom_config: 'no'
|
||||||
|
|
||||||
mysql_cron_optimize: True
|
mysql_cron_optimize: True
|
||||||
mysql_cron_optimize_frequency: weekly
|
mysql_cron_optimize_frequency: weekly
|
||||||
|
|
|
@ -21,6 +21,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: no
|
force: "{{ mysql_force_custom_config }}"
|
||||||
tags:
|
tags:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: no
|
force: "{{ mysql_force_custom_config }}"
|
||||||
tags:
|
tags:
|
||||||
- mysql
|
- mysql
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,11 @@ query_cache_limit = {{ mysql_query_cache_limit }}
|
||||||
{% if mysql_query_cache_limit %}
|
{% if mysql_query_cache_limit %}
|
||||||
query_cache_size = {{ mysql_query_cache_size }}
|
query_cache_size = {{ mysql_query_cache_size }}
|
||||||
{% endif %}
|
{% 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 %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue