mirror of https://github.com/ceph/ceph-ansible.git
shrink-mds: use fact from delegated node
The command is delegated on the first monitor so we must use the fact
`container_binary` from this node.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 77b39d235b
)
pull/4874/head
parent
4cf5c08cd8
commit
edbb207680
|
@ -17,6 +17,10 @@
|
||||||
tasks:
|
tasks:
|
||||||
- debug:
|
- debug:
|
||||||
msg: gather facts on all Ceph hosts for following reference
|
msg: gather facts on all Ceph hosts for following reference
|
||||||
|
- import_role:
|
||||||
|
name: ceph-defaults
|
||||||
|
- import_role:
|
||||||
|
name: ceph-facts
|
||||||
|
|
||||||
- name: perform checks, remove mds and print cluster health
|
- name: perform checks, remove mds and print cluster health
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
@ -54,12 +58,9 @@
|
||||||
or use `-e ireallymeanit=yes` on the command line when
|
or use `-e ireallymeanit=yes` on the command line when
|
||||||
invoking the playbook"
|
invoking the playbook"
|
||||||
|
|
||||||
- import_role:
|
|
||||||
name: ceph-facts
|
|
||||||
|
|
||||||
- name: set_fact container_exec_cmd for mon0
|
- name: set_fact container_exec_cmd for mon0
|
||||||
set_fact:
|
set_fact:
|
||||||
container_exec_cmd: "{{ container_binary }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"
|
container_exec_cmd: "{{ hostvars[groups[mon_group_name][0]]['container_binary'] }} exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }}"
|
||||||
when: containerized_deployment | bool
|
when: containerized_deployment | bool
|
||||||
|
|
||||||
- name: exit playbook, if can not connect to the cluster
|
- name: exit playbook, if can not connect to the cluster
|
||||||
|
|
Loading…
Reference in New Issue