๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible-playbooks/roles/mariadb/templates/mariadb.j2

17 lines
427 B

2 years ago
{% macro mariadb_option(option) -%}
{% if option.value is boolean -%}
{{- option.key | lower }}={{ '1' if option.value else '0' }}
{% elif option.value is string -%}
{{- option.key | lower }}={{ option.value }}
{% endif -%}
{% endmacro -%}
[mariadbd]
user={{ mariadb_user }}
datadir={{ mariadb_data_dir }}
{% for option in (mariadb_cfg | d({}) | dict2items) -%}
{{- mariadb_option(option) -}}
{%- endfor -%}