container/dashboard: run the registry auth task

When deploying with packages then the ceph-container-common role isn't
executed so the registry authentication task is ignored.

Closes: #4636

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4653/head
Dimitri Savineau 2019-10-22 13:58:50 -04:00 committed by Guillaume Abrioux
parent b5a61fe2e3
commit 9ad000618f
3 changed files with 13 additions and 4 deletions

View File

@ -20,6 +20,12 @@
tags: ['ceph_update_config'] tags: ['ceph_update_config']
- import_role: - import_role:
name: ceph-container-engine name: ceph-container-engine
- import_role:
name: ceph-container-common
tasks_from: registry
when:
- not containerized_deployment | bool
- ceph_docker_registry_auth | bool
- import_role: - import_role:
name: ceph-node-exporter name: ceph-node-exporter

View File

@ -15,10 +15,8 @@
ceph_docker_version: "{{ ceph_docker_version.stdout.split(' ')[2] }}" ceph_docker_version: "{{ ceph_docker_version.stdout.split(' ')[2] }}"
when: container_binary == 'docker' when: container_binary == 'docker'
- name: container registry authentication - name: include registry.yml
command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password }} {{ ceph_docker_registry }}' include_tasks: registry.yml
changed_when: false
no_log: true
when: ceph_docker_registry_auth | bool when: ceph_docker_registry_auth | bool
- name: include fetch_image.yml - name: include fetch_image.yml

View File

@ -0,0 +1,5 @@
---
- name: container registry authentication
command: '{{ container_binary }} login -u {{ ceph_docker_registry_username }} -p {{ ceph_docker_registry_password }} {{ ceph_docker_registry }}'
changed_when: false
no_log: true