The TRANSFORM_INVALID_GROUP_CHARS settings Warning after upgrade to 2.8.x

I am using ec2 dynamic inventory to get the ip address of my ec2 instance, it was working fine until 2.7.x but once I have updated to 2.8.x, start getting 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.

I know it’s warning, but still want to know the reason, I could find the info about it much.

btw, my ansible command look like this:


ansible-playbook -i ../inventory/ec2.py --limit tag_Name_dev-test-utils deploy.yml


so name tag of my ec2 instance(s) are: dev-test-utils


Can somebody point me that what should I change to avoid this warning.

Thanks,



Set the option “deprecation_warnings=False” in “ansible.cfg”

Info in the description
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#transform-invalid-group-chars