# ec_profiles:
# - {'name': 'my_ec_profile1', 'k': 2, 'm': 4, 'stripe_unit': 8192}
# - {'name': 'my_ec_profile2', 'k': 4, 'm': 8, 'crush_root': 'HDD', 'crush_device_class': 'ssd'}
+# - {'name': 'foobar', 'state': 'absent'}
## MDS options
#
# ec_profiles:
# - {'name': 'my_ec_profile1', 'k': 2, 'm': 4, 'stripe_unit': 8192}
# - {'name': 'my_ec_profile2', 'k': 4, 'm': 8, 'crush_root': 'HDD', 'crush_device_class': 'ssd'}
+# - {'name': 'foobar', 'state': 'absent'}
## MDS options
#
# ec_profiles:
# - {'name': 'my_ec_profile1', 'k': 2, 'm': 4, 'stripe_unit': 8192}
# - {'name': 'my_ec_profile2', 'k': 4, 'm': 8, 'crush_root': 'HDD', 'crush_device_class': 'ssd'}
+# - {'name': 'foobar', 'state': 'absent'}
## MDS options
#
ceph_ec_profile:
cluster: "{{ cluster }}"
name: "{{ item.name }}"
- state: present
+ state: "{{ item.state | default(omit) }}"
stripe_unit: "{{ item.stripe_unit | default(omit) }}"
k: "{{ item.k }}"
m: "{{ item.m }}"