<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zaki-hmkc</author_name>
  <author_url>https://blog.hatena.ne.jp/zaki-hmkc/</author_url>
  <blog_title>zaki work log</blog_title>
  <blog_url>https://zaki-hmkc.hatenablog.com/</blog_url>
  <categories>
    <anon>Ansible</anon>
    <anon>Python</anon>
    <anon>tech</anon>
    <anon>Kubernetes</anon>
  </categories>
  <description>コントロールノードでなくターゲットノードで(pipで追加パッケージが必要などの理由で)venvを使いたい場合の方法について。 といっても、venvの中にあるPythonインタプリタのパスをinterpreter_pythonなどで指定すればOK。 Python2/Python3の切り替えでインタプリタを指定するという趣旨の記事が多いというか自分も以前書いてたりするけど、Pythonの仮想環境の指定にも使えたので動作確認した結果をまとめた。 ちなみに「『ターゲットノードでvenvを使う』というドンピシャな情報」を見つけられなかっただけなので、もしこの目的のための設定項目が別にあるなら教えてくださ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzaki-hmkc.hatenablog.com%2Fentry%2F2021%2F05%2F26%2F230432&quot; title=&quot; [Ansible] ターゲットノードのvenvのPythonを指定して実行する (interpreter_python / ansible_python_interpreter / PYTHONPATH) - zaki work log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-05-26 23:04:32</published>
  <title> [Ansible] ターゲットノードのvenvのPythonを指定して実行する (interpreter_python / ansible_python_interpreter / PYTHONPATH)</title>
  <type>rich</type>
  <url>https://zaki-hmkc.hatenablog.com/entry/2021/05/26/230432</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
