Ansible执行剧本Boto丢失

时间:2019-02-12 23:39:35

标签: ansible boto

运行Ansible剧本时,它会显示以下消息

  

失败! => {“已更改”:false,“ msg”:“此模块需要boto”}

我在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)

0 个答案:

没有答案