ansible - Ansible 执行剧本 boto 丢失
问题描述
运行 ansible playbook 时,它会显示以下消息
失败的!=> {"changed": false, "msg": "boto required for this module"}
我在 ansible-playbook 中指定了 python 解释器,如下所示:
hosts: aws
become: yes
gather_facts: no
tasks:
- set_fact:
ansible_python_interpreter: /usr/bin/python3
当我检查 pip3 模块时,它已安装。
$ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
apturl (0.5.2)
asn1crypto (0.24.0)
boto (2.49.0)
boto3 (1.9.88)
botocore (1.12.92)
解决方案
推荐阅读
- javascript - 如何向客户端发送错误消息?
- search - 页面未出现在搜索中(NAV 2018 扩展)
- background - 自动布局内容视图背景不调整大小
- python - Wagtail 在页面更新时引发 ValidationError
- sql - 日期字段数据类型 varchar 与 SSMS 中的减法运算符不兼容
- php - 在随机位置合并 2 个数组
- angular - 如何在 Angular Material Design 中的 mat-icon 按钮中设置数字
- python - 过滤列最大值和相应的行值 pandas
- html - 为什么即使不使用 meta charset="utf-8" 也能正确呈现阿拉伯文和中文字符?
- javascript - 画布调整大小