]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
client: skip create_users_keys.yml when rolling_update
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 4 Mar 2020 15:33:46 +0000 (16:33 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 4 Mar 2020 18:06:32 +0000 (13:06 -0500)
There's no need to run this part of the role when upgrading clients
node. Let's skip it when rolling_update.yml is being run.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-client/tasks/main.yml

index 18cab7ea6e857a235b398e8e43034ecd41fb9819..eb0f272cb89a39f7757f6f5ba0a355ca1fbc04f4 100644 (file)
@@ -4,4 +4,6 @@
 
 - name: include create_users_keys.yml
   include_tasks: create_users_keys.yml
-  when: user_config | bool
+  when:
+    - user_config | bool
+    - not rolling_update | default(False) | bool