]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
add unique filter to openstack pool names 1246/head
authortynorth-cisco <tynorth@cisco.com>
Mon, 23 Jan 2017 19:53:43 +0000 (11:53 -0800)
committertynorth-cisco <tynorth@cisco.com>
Mon, 23 Jan 2017 19:58:28 +0000 (11:58 -0800)
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

index 02b21272e9451cefd4d132f1f9cd37aadd1f9d0f..90894dc4ce20a51baaf24e62095b73aeb1236afc 100644 (file)
@@ -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