ansible can't find pycurl on OSX

前端 未结 2 798
小鲜肉
小鲜肉 2021-01-23 21:58

I\'m just getting started with ansible, and I\'m trying to get it to work with the linode module from OSX Yosemite. I\'m using brew-installed Python, and pip-instal

2条回答
  •  星月不相逢
    2021-01-23 22:55

    It's happening on ubuntu as well, finally figured out the solution. You need to explicity pass path to python executable

    Change Ansible hosts file from

    [local]
    localhost
    

    to

    [local]
    localhost ansible_python_interpreter=/usr/local/bin/python
    

    or to your virtual environment python path.

提交回复
热议问题