
This code: {% if container_registry_mirrors | length > 0 %}registry-mirrors: [{{ container_registry_mirrors }}]{% endif %} Needs to include the brackets and I haven't found a way yet to include them without Ansible failure. In the meantime, let's go back on the old code.
7 lines
164 B
Django/Jinja
7 lines
164 B
Django/Jinja
{
|
|
{% if container_registry_mirror != "" %}
|
|
"registry-mirrors": ["{{ container_registry_mirror }}"],
|
|
{% endif %}
|
|
"debug": {{ container_registry_debug|lower }}
|
|
}
|