mirror of https://github.com/ceph/ceph-ansible.git
purge: gather monitors facts in OSD purge
the OSD part of the purge delegates commands on monitor node, we need to
gather monitors facts to know the `ansible_hostname` fact that is used
in the `docker_exec_cmd` fact.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 1a4a6ec855
)
pull/3484/head
parent
37ba313d76
commit
c405fd1140
|
@ -303,11 +303,18 @@
|
||||||
- name: purge ceph osd cluster
|
- name: purge ceph osd cluster
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
- "{{ osd_group_name|default('osds') }}"
|
- "{{ osd_group_name | default('osds') }}"
|
||||||
|
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: gather monitors facts
|
||||||
|
setup:
|
||||||
|
delegate_to: "{{ item }}"
|
||||||
|
delegate_facts: True
|
||||||
|
with_items: "{{ groups[mon_group_name] | default('mons') }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- import_role:
|
- import_role:
|
||||||
|
|
Loading…
Reference in New Issue