地方エンジニアの学習日記

興味ある技術の雑なメモだったりを書いてくブログ。たまに日記とガジェット紹介。

【Ansible】Platform darwin on host using the discovered Python interpreter

macでansible使ってたらでたメッセージ2.9っていう最近のバージョンを使うと出るらしい。

Platform darwin on host  using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.

メッセージを読めばそのままだけansible_playbook_pythonを設定すれば問題なく動作する。lintでも怒られるわけでもないけどまあ設定推奨になったよ程度に理解しておく。個人環境でも気持ち悪いので設定はする。

[小ネタ] Pythonのバージョンを指定してAnsible実行時に表示される警告を消す | Developers.IO