<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira6592</author_name>
  <author_url>https://blog.hatena.ne.jp/akira6592/</author_url>
  <blog_title>てくなべ</blog_title>
  <blog_url>https://tekunabe.hatenablog.jp/</blog_url>
  <categories>
    <anon>ansible</anon>
    <anon>python</anon>
  </categories>
  <description>■ はじめに Ansible では、ターゲットノード（SSH接続先）で利用する Python を ansible_python_interpreter という変数で明示的に指定できます。 この変数は、インベントリ変数や host_vars の他にも、タスク変数としても指定できます。そのため、タスクごとにターゲットノードで利用する Python を切り替えられます。 この記事では、かんたんなサンプルでご紹介します。 動作確認環境 Ansible 2.8.4 CentosOS 7.6 （コントロールノード、ターゲットノード共通） Python 3 未インストール（ターゲットノード） /usr/bi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2019%2F10%2F04%2Fansible_python_interpreter&quot; title=&quot; [Ansible] 利用する Python  をタスクごとに切り替える方法（ansible_python_interpreter をタスク変数で指定） - てくなべ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/a/akira6592/20170902/20170902221811.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-04 09:24:40</published>
  <title> [Ansible] 利用する Python  をタスクごとに切り替える方法（ansible_python_interpreter をタスク変数で指定）</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2019/10/04/ansible_python_interpreter</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
