[root@user ansible_quickstart]# ansible-galaxy collection install community.vmware
Starting galaxy collection install process
Process install dependency map
[WARNING]: Skipping Galaxy server https://galaxy.ansible.com. Got an unexpected error when getting available versions of collection community.vmware:
Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno -2] Name or service not known>. <urlopen error
[Errno -2] Name or service not known>
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno -2] Name or service not known>. <urlopen erro r [Errno -2] Name or service not known>
“Name or service not known” suggests that DNS is not resolvable for galaxy.ansible.com.
Sounds like a private network with no direct internet access to me. Otherwise, galaxy.ansible.com should be resolvable.
Or your DNS servers filter galaxy.ansible.com for whatever reason.