Skip to content

Commit

Permalink
update: move a set_fact
Browse files Browse the repository at this point in the history
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 e5edcc4)
  • Loading branch information
guits committed Nov 3, 2021
1 parent e63df90 commit 5f7ad18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions infrastructure-playbooks/rolling_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
run_once: true
when: delegate_facts_host | bool

- name: set_fact rolling_update
set_fact:
rolling_update: true

- import_role:
name: ceph-facts

Expand Down Expand Up @@ -123,9 +127,6 @@
msg: "This version of ceph-ansible is intended for upgrading to Ceph Octopus only."
when: "'octopus' not in ceph_version.stdout.split()"

- name: set_fact rolling_update
set_fact:
rolling_update: true

- name: upgrade ceph mon cluster
tags: mons
Expand Down

0 comments on commit 5f7ad18

Please sign in to comment.