mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
14 lines
337 B
Django/Jinja
14 lines
337 B
Django/Jinja
{
|
|
"auths": {
|
|
{% for auth in nomad_conf.client.task_drivers.docker.auths %}
|
|
{% if auth.registry is defined and auth.login is defined and auth.password is defined %}
|
|
"{{ auth.registry }}": {
|
|
"auth": "{{ (auth.login ~ ':' ~ auth.password) | b64encode }}"
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
}
|
|
}
|