From 9fb69e13edaa635891b116d010e41e17de44528b Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 23 Jan 2020 15:51:17 +0100 Subject: [PATCH] handler: read container_exec_cmd value from first mon Given that we delegate to the first monitor, we must read the value of `container_exec_cmd` from this node. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1792320 Signed-off-by: Guillaume Abrioux (cherry picked from commit eb9112d8fbbd33e89a365029feaaed0459c9b86a) --- roles/ceph-handler/tasks/handler_osds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-handler/tasks/handler_osds.yml b/roles/ceph-handler/tasks/handler_osds.yml index c5fce6c5c..0fbcfb7fa 100644 --- a/roles/ceph-handler/tasks/handler_osds.yml +++ b/roles/ceph-handler/tasks/handler_osds.yml @@ -4,7 +4,7 @@ _osd_handler_called: True - name: unset noup flag - command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd unset noup" + command: "{{ hostvars[groups[mon_group_name][0]]['container_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} osd unset noup" delegate_to: "{{ groups[mon_group_name][0] }}" run_once: true changed_when: False