]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
container: run engine/common roles on first client
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 10 Sep 2020 15:27:37 +0000 (11:27 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 10 Sep 2020 18:57:16 +0000 (20:57 +0200)
We already do this in the site-container.yml playbook because we don't
need docker/podman installed on all client nodes and having the
container image only on the first client node.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 8ecbdc6ede7e26d053f87acde99986fddb0fe070)

dashboard.yml
infrastructure-playbooks/rolling_update.yml

index e647a8e63a3ff72f92fed48f07cc78b8eacc173c..d772fad53d546c5caa2b1731762fc88f6dfb184b 100644 (file)
       tags: ['ceph_update_config']
     - import_role:
         name: ceph-container-engine
+      when: (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
     - import_role:
         name: ceph-container-common
         tasks_from: registry
       when:
+        - (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
         - not containerized_deployment | bool
         - ceph_docker_registry_auth | bool
     - import_role:
index 31292a0a7f9ec41ce3cbd38d12e46c5371d20909..092d57926e310fd34aaa1b5be34cf3dc425f05dd 100644 (file)
     - import_role:
         name: ceph-infra
 
+    - import_role:
+        name: ceph-validate
+
     - import_role:
         name: ceph-container-common
         tasks_from: registry
       when:
+        - (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
         - containerized_deployment | bool
         - ceph_docker_registry_auth | bool
 
-    - import_role:
-        name: ceph-validate
-
     - set_fact: rolling_update=true
 
 - name: upgrade ceph mon cluster
       when: not containerized_deployment | bool
     - import_role:
         name: ceph-container-common
-      when: containerized_deployment | bool
+      when:
+        - (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
+        - containerized_deployment | bool
     - import_role:
         name: ceph-config
     - import_role: