<?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 Advent Calendar 2020 (Adventar版) の 25日目の記事です。 はじめに ターゲットノードにログインするのではなく、Ansible コントロールロードからなにか処理（APIを叩くなど）をする場合、connection: local や delegate_to をあわせて指定する場合があります。 その際の変数 ansible_host や inventory_hostname がどうなるのか、意外とわかりにくかったりしまます。私だけでしょうか・・。 よく忘れるので、試した結果をまとめておきます。検証には debug モジュールを利用します。 動…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F12%2F25%2Fansibe_delegate_to_variables&quot; title=&quot; [Ansible] delegate_to: localhost や connection: local 指定時の ansible_host、inventory_hostname の関係 - てくなべ&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>2020-12-25 09:48:26</published>
  <title> [Ansible] delegate_to: localhost や connection: local 指定時の ansible_host、inventory_hostname の関係</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2020/12/25/ansibe_delegate_to_variables</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
