From: tynorth-cisco Date: Mon, 23 Jan 2017 19:53:43 +0000 (-0800) Subject: add unique filter to openstack pool names X-Git-Tag: v2.2.0rc1~58^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1246%2Fhead;p=ceph-ansible.git 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 --- 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