]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling update: add mgr exception for jewel minor updates
authorSébastien Han <seb@redhat.com>
Wed, 17 Jan 2018 14:18:11 +0000 (15:18 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 18 Jan 2018 21:02:32 +0000 (22:02 +0100)
When update from a minor Jewel version to another, the playbook will
fail on the task "fail if no mgr host is present in the inventory".
This now can be worked around by running Ansible with_items

-e jewel_minor_update=true

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1535382
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 8af745947695ff7dc543754db802ec57c3238adf)
Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 23dfa683e44f686a29d88d5e7e4aebae9576222a..ac53f5d8d485dea5de3bbc6837597acf7a3d70ab 100644 (file)
@@ -19,6 +19,7 @@
   become: false
   vars:
     - mgr_group_name: mgrs
+    - jewel_minor_update: False
 
   vars_prompt:
     - name: ireallymeanit
@@ -40,6 +41,7 @@
       fail:
         msg: "Please add a mgr host to your inventory."
       when:
+        - not jewel_minor_update
         - groups.get(mgr_group_name, []) | length == 0