]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
container: don't install the engine on all clients
authorDimitri Savineau <dsavinea@redhat.com>
Mon, 17 Aug 2020 18:56:17 +0000 (14:56 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 17 Aug 2020 20:57:28 +0000 (22:57 +0200)
We only need the container engine to be installed on the first clients
node in order to execute the pools/keys operation. We already do the
same worflow with the ceph-container-common role which pull the ceph
container image.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
site-container.yml.sample

index b746a84acf5ecc8a42df095a4787f974d819c7df..e954bdcc9c7097087053acec38d47aa1d1533c5b 100644 (file)
@@ -61,6 +61,7 @@
     - import_role:
         name: ceph-container-engine
       tags: with_pkg
+      when: (group_names != ['clients']) or (inventory_hostname == groups.get('clients', [''])|first)
     - import_role:
         name: ceph-container-common
       tags: fetch_container_image