]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: move a set_fact
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 28 Oct 2021 21:40:18 +0000 (23:40 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 3 Nov 2021 10:50:50 +0000 (11:50 +0100)
ceph-facts roles makes decisions based on the fact `rolling_update` so
it must be called before we run this role.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2014304
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e5edcc4214348945e1566641a490b68ef8886cf0)

infrastructure-playbooks/rolling_update.yml

index f7fa3f37df05d265a004e9c09437b120c6cb52a8..26ef9fde0e9be0c95ab06bea961145fdea9a7197 100644 (file)
       run_once: true
       when: delegate_facts_host | bool
 
+    - name: set_fact rolling_update
+      set_fact:
+        rolling_update: true
+
     - import_role:
         name: ceph-facts
 
             msg: "This version of ceph-ansible is intended for upgrading to Ceph Nautilus only."
           when: "'nautilus' not in ceph_version.stdout.split()"
 
-    - name: set_fact rolling_update
-      set_fact:
-        rolling_update: true
 
 - name: upgrade ceph mon cluster
   tags: mons