<?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 には、IP アドレスに対してさまざまフィルターをかける ipaddrというフィルタープラグインがあります。 過去記事参考: [ipaddr フィルターでプレフィックス表記とネットマスク表記を変換する) このフィルターを使って、IPアドレスのリストの中から、特定の範囲のIPアドレスだけを抽出する方法を試します。 動作確認環境: Ansible 2.8.4 要 netaddr (pip install netaddr でインストール) ■ サンプル 簡単なサンプルで説明します。 Playbook 検証する Playbook は以下の通りです。 target_list …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2019%2F09%2F02%2Fansible_ipaddr_rang_filter&quot; title=&quot; [Ansible] ipaddr フィルターで特定の範囲のIPアドレスを抽出する - てくなべ&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-09-02 08:42:00</published>
  <title> [Ansible] ipaddr フィルターで特定の範囲のIPアドレスを抽出する</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2019/09/02/ansible_ipaddr_rang_filter</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
