From 6400989cf2ea9c4bb722f20b5d54af13e3f51146 Mon Sep 17 00:00:00 2001 From: tynorth-cisco Date: Mon, 23 Jan 2017 11:53:43 -0800 Subject: [PATCH] add unique filter to openstack pool names could have scenario where different openstack components would use the same pool, but the logic would create the same pool more than once add unique filter to account for this --- roles/ceph-mon/tasks/openstack_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-mon/tasks/openstack_config.yml b/roles/ceph-mon/tasks/openstack_config.yml index 02b21272e..90894dc4c 100644 --- a/roles/ceph-mon/tasks/openstack_config.yml +++ b/roles/ceph-mon/tasks/openstack_config.yml @@ -1,7 +1,7 @@ --- - name: create openstack pool command: ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} - with_items: "{{ openstack_pools }}" + with_items: "{{ openstack_pools | unique }}" changed_when: false failed_when: false -- 2.39.5