【问题标题】:Ansible: The ipaddr filter requires python's netaddr be installed on the ansible controllerAnsible:ipaddr 过滤器需要在 ansible 控制器上安装 python 的 netaddr
【发布时间】:2021-06-22 08:54:25
【问题描述】:

Docker 容器 Alpine.3.13.1
apk add ansible 成功,但是,执行需要 ipaddr 过滤器的剧本失败:

Ansible: The ipaddr filter requires python's netaddr be installed on the ansible controller

Ansible 版本:2.10.5(如果需要可以做其他版本)
ipaddr 过滤器:Ansible docs

尝试通过ansible-galaxy collection install ansible.netcommonpip install netaddr 安装它。仍然收到同样的错误。

【问题讨论】:

    标签: python docker ansible alpine


    【解决方案1】:

    你需要先安装它:

    apk add py-netaddr
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-09-27
      • 2019-01-08
      • 2014-12-30
      • 2023-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多