mirror of
https://github.com/HanXHX/ansible-mysql.git
synced 2026-02-24 10:13:30 +07:00
mysql_extra_configuration rework
This commit is contained in:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user