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.
(cherry picked from commit
a83e1aeea39b9c7ae2757b166f3def7d4f67f161)
Signed-off-by: Sébastien Han <seb@redhat.com>
---
- 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