diff --git a/infrastructure-playbooks/purge-docker-cluster.yml b/infrastructure-playbooks/purge-docker-cluster.yml index f590b8ccc..30354ec94 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: