From: Teoman ONAY Date: Mon, 1 Aug 2022 13:36:48 +0000 (+0200) Subject: Playbook fails when using --limit to install new MDS X-Git-Tag: v6.0.28~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=508269e27334a354db4bf27c747780e12eea0935;p=ceph-ansible.git Playbook fails when using --limit to install new MDS "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 (cherry picked from commit cef1636f70832c95b463f0d14040e06bebd4fc59) (cherry picked from commit 80dc46d31f682d9ea54de6e748806cbefd6a70d3) --- diff --git a/roles/ceph-dashboard/tasks/configure_dashboard.yml b/roles/ceph-dashboard/tasks/configure_dashboard.yml index d0152c4f0..42c976d44 100644 --- a/roles/ceph-dashboard/tasks/configure_dashboard.yml +++ b/roles/ceph-dashboard/tasks/configure_dashboard.yml @@ -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'] }}"