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>
(cherry picked from commit 9ad000618f)
pull/4654/head
Dimitri Savineau 2019-10-22 13:58:50 -04:00 committed by Guillaume Abrioux
parent c787cfcdff
commit 4ff517e1ab
3 changed files with 13 additions and 4 deletions

View File

@ -20,6 +20,12 @@
tags: ['ceph_update_config']
- import_role:
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:
name: ceph-node-exporter

View File

@ -15,10 +15,8 @@
ceph_docker_version: "{{ ceph_docker_version.stdout.split(' ')[2] }}"
when: container_binary == 'docker'
- 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
- name: include registry.yml
include_tasks: registry.yml
when: ceph_docker_registry_auth | bool
- 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