ansible - Ansible-Playbook:错误消息“找不到任何要使用的 pip3。需要安装 pip”
问题描述
我尝试在我的剧本中通过 ansible 安装 boto3。
我试图在我的主机上创建一个新用户。
- name: "test user"
hosts: test
tasks:
- name: "install boto3"
pip:
name: boto3
executable: pip3
我收到了这条消息:
{"changed": false, "msg": "Unable to find any of pip3 to use. pip needs to be installed."}
解决方案
在失败步骤之前安装 Python3-pip
- name: install pip3
apt: name=python3-pip state=present
推荐阅读
- python - Mapreduce 回车
- google-api - Android Fitness REST API 缺少数据点
- python - 子进程系统找不到指定的文件错误
- algorithm - 如何使用具有最小值/最大值的画线算法?F#
- java - 用于打印目的的 Android Studio 中的 HTML 代码中的 For 循环
- reactjs - 你可以使用 React Hooks 将状态传递给子组件吗?
- deployment - 如何使 S3 Cloudfront 上部署的 Gatsby 网站上的服务工作者缓存失效?
- javascript - 使用 Axios 和 Vue.js 进行 JWT 授权(标题)
- php - 如何在laravel中获取多个数据
- dart - Flutter dropdownbutton 绑定键值数组