]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Playbook fails when using --limit to install new MDS
authorTeoman ONAY <tonay@redhat.com>
Mon, 1 Aug 2022 13:36:48 +0000 (15:36 +0200)
committerTeoman ONAY <tonay@redhat.com>
Mon, 1 Aug 2022 13:45:30 +0000 (15:45 +0200)
"set_fact container_run_cmd" is not set when using --limit on MDS as facts
were not run on first MON.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2111017
Signed-off-by: Teoman ONAY <tonay@redhat.com>
roles/ceph-dashboard/tasks/configure_dashboard.yml

index bc91f89b3b5e28a1a7be2d8d20ef3b31191e5a01..9826fc9de1c650fee20d8f7938d71d0b75f10c87 100644 (file)
@@ -1,4 +1,10 @@
 ---
+- import_role:
+    name: ceph-facts
+    tasks_from: container_binary.yml
+  delegate_to: "{{ groups[mon_group_name][0] }}"
+  delegate_facts: true
+
 - name: set_fact container_exec_cmd
   set_fact:
     container_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_facts']['hostname'] }}"