ansible-virl
ansible-virl copied to clipboard
Module creates groups with "invalid" characters
The ansible-virl module tries to create groups out of the various node definitions it finds in the running simulation. In so doing, it picks up whatever node definition names are in the simulation as group names. If these include invalid characters, then Ansible complains.
Example:
"viptela-bond": {
"hosts": [
"vbond1"
]
},
"viptela-edge": {
"hosts": [
"site2-vedge1"
]
},
"viptela-manage": {
"hosts": [
"vmanage1"
]
},
"viptela-smart": {
"hosts": [
"vsmart1"
]
},
Do we really need to create groups based on node definition? If so, we might want to do some character substitution either via Ansible configuration or within the module itself in order to avoid this warning:
[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this will change, but still be user configurable
on deprecation. This feature will be removed in version 2.10. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details