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
Giulio Fidente 2018-02-22 19:57:47 +01:00 committed by Sébastien Han
parent 165d9dec10
commit a83e1aeea3
1 changed files with 1 additions and 1 deletions

View File

@ -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