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
9ad000618ff7be9967bbdae2b1c5cfc0793efe26)
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
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
--- /dev/null
+---
+- 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