LoginSignup
8
8

More than 5 years have passed since last update.

Ansibleで標準パス以外にインストールされたPythonを利用するには

Posted at

pyenvを入れたMACに対してAnsibleを実行しようとしたらエラーが出たのでその回避方法をメモ

  • 利用しているpythonのパスを確認
$ which python
/Users/username/.pyenv/shims/python
  • 確認したパスをinventoryファイルに記載する
hosts
[localhost]
localhost
[localhost:vars]
ansible_python_interpreter=/Users/username/.pyenv/shims/python
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8