site-container: don't skip ceph-container-common

On HCI environment the OSD and Client nodes are collocated. Because we
aren't running the ceph-container-common role on the client nodes except
the first one (for keyring purpose) then the ceph-role execution fails
due to undefined variables.

Closes: #4970
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1794195

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
pull/4980/head
Dimitri Savineau 2020-01-22 14:45:38 -05:00 committed by Guillaume Abrioux
parent e5812fe45b
commit 671b1aba3c
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@
- import_role: - import_role:
name: ceph-container-common name: ceph-container-common
tags: fetch_container_image tags: fetch_container_image
when: not (inventory_hostname in groups.get('clients', [])) or (inventory_hostname == groups.get('clients', [''])|first) when: (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
- hosts: mons - hosts: mons
gather_facts: false gather_facts: false