ansible-role-container-regi.../templates/docker-daemon.json.j2
Emilien Macchi d480839da5 Restore old task for docker-daemon.json
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.
2018-04-16 17:27:04 -07:00

7 lines
164 B
Django/Jinja

{
{% if container_registry_mirror != "" %}
"registry-mirrors": ["{{ container_registry_mirror }}"],
{% endif %}
"debug": {{ container_registry_debug|lower }}
}