mysql_extra_configuration rework
parent
deb2e1b811
commit
17f3731450
|
@ -66,10 +66,7 @@ mysql_extra_configuration: []
|
|||
|
||||
# Example:
|
||||
#mysql_extra_configuration:
|
||||
# - group_name: 'mysqld'
|
||||
# conf:
|
||||
# - key: 'innodb_awsome_feature'
|
||||
# value: 1
|
||||
# 'innodb_awsome_feature': 1
|
||||
|
||||
|
||||
# -------------------------------------
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
# {{ ansible_managed }}
|
||||
# -------------------------------------------
|
||||
|
||||
{% for i in mysql_extra_configuration %}
|
||||
[{{ i.group_name }}]
|
||||
{% for c in i.conf %}
|
||||
{% if c.value is defined %}
|
||||
{{ c.key }} = {{ c.value }}
|
||||
[mysqld]
|
||||
{% for key, value in mysql_extra_configuration.iteritems() %}
|
||||
{% if value is defined or value is not none %}
|
||||
{{ key }} = {{ value }}
|
||||
{% else %}
|
||||
{{ c.key }}
|
||||
{{ key }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
; vim: set ft=dosini :
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
mysql_use_percona_repository: true
|
||||
mysql_bind_address: '{{ ansible_eth1.ipv4.address }}'
|
||||
mysql_extra_configuration:
|
||||
innodb_commit_concurrency: 0
|
||||
|
|
Loading…
Reference in New Issue