`ansible-galaxy collection build` rejects the collection name `acme.web-tools`
BeginnerTroubleshootingRoles, Collections and Galaxy
Answer
Likely causes → Collection namespaces and names may only contain lowercase letters, digits and underscores, and cannot start with a digit or an underscore. Hyphens are not allowed.
Fix → In galaxy.yml, set namespace: acme and name: web_tools, and refer to content as acme.web_tools.<module>.
Prevent → Scaffold with ansible-galaxy collection init acme.web_tools, which validates the name.