Skip to content

Commit

Permalink
Playbook fails when using --limit to install new MDS
Browse files Browse the repository at this point in the history
"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 <[email protected]>
(cherry picked from commit cef1636)
(cherry picked from commit 80dc46d)
  • Loading branch information
asm0deuz authored and guits committed Aug 4, 2022
1 parent d167b0a commit 508269e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/ceph-dashboard/tasks/configure_dashboard.yml
Original file line number Diff line number Diff line change
@@ -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'] }}"
Expand Down

0 comments on commit 508269e

Please sign in to comment.