mirror of https://github.com/ceph/ceph-ansible.git
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 <gabrioux@redhat.com>
(cherry picked from commit eb9112d8fb
)
pull/4986/head
v4.0.12
parent
4152a1a862
commit
9fb69e13ed
|
@ -4,7 +4,7 @@
|
||||||
_osd_handler_called: True
|
_osd_handler_called: True
|
||||||
|
|
||||||
- name: unset noup flag
|
- 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] }}"
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
Loading…
Reference in New Issue