ansible/roles/mysql/templates/my.cnf.j2

13 lines
269 B
Plaintext
Raw Permalink Normal View History

2022-08-30 12:48:38 +00:00
# {{ ansible_managed }}
{% for section, cfg in mysql_config.iteritems() | sort %}
[{{section}}]
{% for k, v in cfg.iteritems() | sort %}
{% if k is defined and v is not none %}
{{ k }} = {{ v }}
{% elif k and v is none %}
{{ k }}
{% endif %}
{% endfor %}
{% endfor %}