--- - name: create rgw pools if create_pools is defined command: ceph --connect-timeout 5 --cluster {{ cluster }} osd pool create {{ item.key }} {{ item.value.pg_num }} changed_when: false failed_when: false when: create_pools is defined with_dict: "{{ create_pools }}"