ansible-for-devops
ansible-for-devops copied to clipboard
Invalid inventory group names (containing dashes/hyphens) in Chapter 8?
Thanks for the book! I'm pretty new to Ansible, but I don't think this is a totally dumb question.
The group names in the example inventory on page 164 of the 2.0 release include dashes. I followed that pattern in an inventory of my own, and got complaints from Ansible 2.9.11:
[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
Changing the dashes to underscores made the warnings disappear. The docs on (I think) this certainly make it sound like dashes aren't valid. Am I missing something, or is this an error in the text?