My goal is to fail early and warn if storage network not set up (and set up mounts if it is set up).
I’ve an approach that seems to work OK, but was wondering if there is a preferred/better path
set_fact:
has_storage_lan: ‘{{ ansible_all_ipv4_addresses|join()|match(“10.0.20.”) }}’
This amounts to flattening the IP address array and converting to string values to then match on leading network range.
Is there a better way?
(thanks)