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)
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/e1f4ab6c-86e7-4b97-bb4b-24793d2c27c4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.