On 26.12.2019 15:22, Xinhuan Zheng wrote:
The group names by subnet will have dot. How do I change that to avoid dot
characters?

If you read the documentation about TRANSFORM_INVALID_GROUP_CHARS it says how you can do it with that.

Alternative is to use the regex_replace filter or the
replace metode {{  ansible_default_ipv4.network.replace('.', '_') }}


--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c5988b6826c6f2e9c8d2fd8788bbc0e3%40olstad.com.

Reply via email to