Hello,
The group names by subnet will have dot. How do I change that to avoid dot
characters?
- Xinhuan
On Saturday, December 21, 2019 at 2:27:52 AM UTC-5, Kai Stian Olstad wrote:
>
> On 20.12.2019 22:08, Xinhuan Zheng wrote:
> > - name: Group system by subnet
> > group_by:
> > key: subnet_{{ansible_default_ipv4.network}}
> >
> > While I run my playbook, I got this error:
> >
> > TASK [os-networking : Group system by subnet]
> >
> *************************************************************************************
>
>
> > task path: os-networking/tasks/main.yml:24
> > Not replacing invalid character(s) "set([u'.'])" in group name
> > (subnet_192.168.101.0)
> > [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
> >
> > How should I fix this warning?
>
> Don't use dot in group name or set TRANSFORM_INVALID_GROUP_CHARS to a
> value of your choice.
>
>
> --
> 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/6636b7ef-f393-48de-bfa1-24b139580120%40googlegroups.com.