---

meta_db_deploy: "{{ not ('meta-db' in research_db_companion_bases) }}"
meta_db_marathon_host: "
  {%- set host = groups['meta-db'][0] -%}
  {{- hostvars[host]['fqdn'] | default(hostvars[host]['ansible_fqdn']) -}}
"

meta_db_gitlab_docker_registries:
  - url: registry.gitlab.com
    username: "{{ gitlab_com_login }}"
    password: "{{ gitlab_com_password }}"

meta_db_docker_registries: "
  {%- set regs = [] -%}
  {%- if gitlab_com_password is defined -%}
    {%- set regs = meta_db_gitlab_docker_registries -%}
  {%- endif -%}
  {{- regs -}}
"

---

meta_db_deploy: "{{ not ('meta-db' in research_db_companion_bases) }}"
meta_db_marathon_host: "
  {%- set host = groups['meta-db'][0] -%}
  {{- hostvars[host]['fqdn'] | default(hostvars[host]['ansible_fqdn']) -}}
"

meta_db_docker_registries: "
  {%- set regs = [] -%}
  {%- if gitlab_com_password is defined -%}
    {%- set regs = [{url: 'registry.gitlab.com', username: gitlab_com_login, password: gitlab_com_password}] -%}
  {%- endif -%}
  {{- regs -}}
"

Fix list of Docker registries for meta-db
Fix list of Docker registries for meta-db
