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
pull/1246/head
tynorth-cisco 2017-01-23 11:53:43 -08:00
parent c4161df38b
commit 6400989cf2
1 changed files with 1 additions and 1 deletions

View 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