From c405fd11400a0861d5793b63e5057c01a0292cb3 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 5 Dec 2018 09:06:53 +0100 Subject: [PATCH] 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 (cherry picked from commit 1a4a6ec855fcb2943d78d2a84c29a7e8c588824f) --- infrastructure-playbooks/purge-docker-cluster.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/infrastructure-playbooks/purge-docker-cluster.yml b/infrastructure-playbooks/purge-docker-cluster.yml index 4786d32a8..4a2f5d98c 100644 --- a/infrastructure-playbooks/purge-docker-cluster.yml +++ b/infrastructure-playbooks/purge-docker-cluster.yml @@ -303,11 +303,18 @@ - name: purge ceph osd cluster hosts: - - "{{ osd_group_name|default('osds') }}" + - "{{ osd_group_name | default('osds') }}" gather_facts: 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: - import_role: