mirror of https://github.com/ceph/ceph-ansible.git
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
parent
b5a61fe2e3
commit
9ad000618f
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue