mirror of https://github.com/ceph/ceph-ansible.git
Make rule_name optional when defining items in openstack_pools
Previously it was necessary to provide a value (eventually an empty string) for the "rule_name" key for each item in openstack_pools. This change makes that optional and defaults to empty string when not given.pull/2416/head
parent
165d9dec10
commit
a83e1aeea3
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: create openstack pool(s)
|
||||
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name }}"
|
||||
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} osd pool create {{ item.name }} {{ item.pg_num }} {{ item.rule_name|default('') }}"
|
||||
with_items: "{{ openstack_pools | unique }}"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
|
Loading…
Reference in New Issue