]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-facts: fix read osd pool default crush fact
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 18 Nov 2020 15:43:57 +0000 (10:43 -0500)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 18 Nov 2020 17:55:43 +0000 (12:55 -0500)
We don't need to use run_once on that task when having running monitors
otherwise the read task could be skip and the set task will fail.

The conditional check 'crush_rule_variable.rc == 0' failed. The error
was: error while evaluating conditional (crush_rule_variable.rc == 0):
'dict object' has no attribute 'rc'

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1898856
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-facts/tasks/facts.yml

index 5bd25837597a218faded29be1ff90bc9f4bb93e0..7d8d897546655568f322c96d7f172214d1134e13 100644 (file)
 - name: get default crush rule value from running monitor ceph configuration
   block:
     - <<: *read-osd-pool-default-crush-rule
-      run_once: true
       delegate_to: "{{ running_mon }}"
     - *set-osd-pool-default-crush-rule-fact
   when: