ansible can't find pycurl on OSX

前端 未结 2 796
小鲜肉
小鲜肉 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:29

    I was able to fix this on OS X El Capitan 10.11.6 by editing hosts:

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

    You may then need additional Python dependencies:

    pip install pycurl
    pip install linode-python
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题