The problem
When trying to format partitions using blivet library, you can get uninformative output like:
ansible.errors.AnsibleTaskError: Task failed: Module failed: resource to create this format mdmember is unavailable
that tells nothing about reasons "why" it's not available. After further debugging inside module I got the reason:
libblockdev plugin mdraid is loaded but some required technologies are not available (The 'mdadm' utility is not available)
but it took a lot of time.
Expected behaviour
When trying to format partition when feature not available raise an exception with more details
The problem
When trying to format partitions using blivet library, you can get uninformative output like:
ansible.errors.AnsibleTaskError: Task failed: Module failed: resource to create this format mdmember is unavailablethat tells nothing about reasons "why" it's not available. After further debugging inside module I got the reason:
libblockdev plugin mdraid is loaded but some required technologies are not available (The 'mdadm' utility is not available)but it took a lot of time.
Expected behaviour
When trying to format partition when feature not available raise an exception with more details