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: