<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiririmode</author_name>
  <author_url>https://blog.hatena.ne.jp/kiririmode/</author_url>
  <blog_title>理系学生日記</blog_title>
  <blog_url>https://kiririmode.hatenablog.jp/</blog_url>
  <categories>
    <anon>environment</anon>
  </categories>
  <description>Ansible で環境変数の値をそのまま使いたいということがありました。 というのも、プライベートでは kiririmode というハンドルネームを使っている関係上ホームディレクトリは /Users/kiririmode なのだけれど、会社だと別のユーザ名なので、このあたりの差異を吸収したい。ホームディレクトリのパスは当然 HOME 環境変数で取れるので、これを使えば楽なはず。 こういう用途のためには、lookup プラグインを使う。lookup プラグインは、別に環境変数に特化したものではなく、&quot;外部&quot; から値を取り出すときに使えるプラグインで、ファイルからだったり、redis からだったり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20150204%2F1422975600&quot; title=&quot;Ansibleで環境変数の値を使う - 理系学生日記&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>2015-02-04 00:00:00</published>
  <title>Ansibleで環境変数の値を使う</title>
  <type>rich</type>
  <url>https://kiririmode.hatenablog.jp/entry/20150204/1422975600</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
