]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
handler: read container_exec_cmd value from first mon
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 23 Jan 2020 14:51:17 +0000 (15:51 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 23 Jan 2020 16:35:57 +0000 (11:35 -0500)
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 <gabrioux@redhat.com>
roles/ceph-handler/tasks/handler_osds.yml

index c5fce6c5c805578f202bca5b4869cf4fdd89219e..0fbcfb7fa992a3e301b74b0948ac5f2f872239bc 100644 (file)
@@ -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