【问题标题】:"Msg: The module win_ping was redirected to ansible.windows.win_ping, which could not be loaded "\"消息:模块 win_ping 被重定向到 ansible.windows.win_ping,无法加载\"
【发布时间】:2023-02-24 11:50:39
【问题描述】:

我尝试使用“ansible-galaxy collection install ansible.windows”安装 ansible.windows 集合,但出现错误“错误!尝试在'https://galaxy.ansible.com/ 调用 Galaxy 时发生未知错误” api/':nonnuneric 端口:xxxx"

【问题讨论】:

    标签: ansible


    【解决方案1】:

    我是 Red Hat 的 Ansible 社区团队的一员,很抱歉有些东西不起作用。

    我不知道 galaxy.ansible.com 有任何问题。虽然有可能是暂时的问题

    您能否在启用调试的情况下运行并在运行时粘贴完整输出 ansible-galaxy collection install -vvvv ansible.windows

    这也会告诉我们您使用的是哪个版本的ansible

    【讨论】:

    • ansible-galaxy [核心 2.12.5] python 版本 = 3.8.10
    【解决方案2】:

    需要使用命令安装ansible.windows:“ansible-galaxy collection install ansible.windows”然后你可以检查“ansible-galaxy collection list”,然后再次“ansible -i inventory host -m win_ping”......应该工作.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-17
      相关资源
      最近更新 更多