rolling_update: enforce ceph-container-engine

When running the rolling_update.yml playbook and adding the dashboard
component in the same time then the requirement (like container packages)
aren't installed.
This could lead to a failure in case of using authentication on the
container registry because the playbook will try to login on the registry
but podman/docker aren't yet installed.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1903504
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1918650

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 48a456dc8c)
pull/6269/head
Dimitri Savineau 2021-02-03 17:39:49 -05:00 committed by Guillaume Abrioux
parent 5572c907ee
commit a1ca7f3daa
1 changed files with 7 additions and 1 deletions

View File

@ -91,12 +91,18 @@
- import_role: - import_role:
name: ceph-validate name: ceph-validate
- import_role:
name: ceph-container-engine
when:
- (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
- (containerized_deployment | bool) or (dashboard_enabled | bool)
- import_role: - import_role:
name: ceph-container-common name: ceph-container-common
tasks_from: registry tasks_from: registry
when: when:
- (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first) - (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
- containerized_deployment | bool - (containerized_deployment | bool) or (dashboard_enabled | bool)
- ceph_docker_registry_auth | bool - ceph_docker_registry_auth | bool
- name: set_fact rolling_update - name: set_fact rolling_update