<?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>
  </categories>
  <description>■ はじめに Ansible には 環境変数を取得するための方法として、ansible_env 配下の変数を参照する方法と、 lookup(&quot;env&quot;, &quot;hoge&quot;) のように loopkup プラグインを利用する方法があります。これらは性質が大きく異なります。 この記事では簡単な例で動作を確認します。 ■ 違いは？ ansible_env.hoge lookup(&quot;env&quot;, &quot;hoge&quot;) 取得場所 リモートホスト（ターゲット） ローカルホスト（ansible-playbookコマンド実行ホスト） 取得タイミング gather_facts: yes （デフォルト）などによる setup …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2019%2F03%2F09%2Fansible_env&quot; title=&quot; [Ansible] 環境変数を取得する ansible_env.hoge と lookup(&amp;quot;env&amp;quot;, &amp;quot;hoge&amp;quot;) の違い - てくなべ&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-03-09 13:11:33</published>
  <title> [Ansible] 環境変数を取得する ansible_env.hoge と lookup(&quot;env&quot;, &quot;hoge&quot;) の違い</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2019/03/09/ansible_env</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
