背景
ERROR! Unknown error when attempting to call Galaxy at ‘https://galaxy.ansible.com/api/’: <urlopen error [Errno -2] Name or service not known>
一、步骤
1.查看系统防火墙
关闭防火墙,在执行ansible-galaxy collection install community.mysql
2.再次执行ansible-galaxy collection install community.mysql
再次执行会报certificate verify failed,查看文章“ansible-galaxy collection install community.mysql 报certificate verify failed”解决