diff --git a/roles/ceph-defaults/tasks/facts.yml b/roles/ceph-defaults/tasks/facts.yml index e043c0ea3..5c6ec55a8 100644 --- a/roles/ceph-defaults/tasks/facts.yml +++ b/roles/ceph-defaults/tasks/facts.yml @@ -37,6 +37,7 @@ failed_when: false check_mode: no register: ceph_current_fsid + run_once: true delegate_to: "{{ groups[mon_group_name][0] }}" when: - not rolling_update @@ -74,7 +75,7 @@ set_fact: fsid: "{{ ceph_current_fsid.stdout }}" when: - - ceph_current_fsid.rc == 0 + - ceph_current_fsid.get('rc', 1) == 0 # Set ceph_release to ceph_stable by default - name: set_fact ceph_release ceph_stable_release @@ -99,7 +100,7 @@ creates: "{{ fetch_directory }}/ceph_cluster_uuid.conf" become: false when: - - ceph_current_fsid.rc == 0 + - ceph_current_fsid.get('rc', 1) == 0 - name: read cluster fsid if it already exists local_action: