<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nonylene</author_name>
  <author_url>https://blog.hatena.ne.jp/nonylene/</author_url>
  <blog_title>Unyablog.</blog_title>
  <blog_url>https://nonylene.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ansible</anon>
  </categories>
  <description>Ansible で大量のホストを対象として Playbook を実行すると、大量の変数を保持する結果、メモリが足りなくなることがある。 以下はその対策。 gather_subset を用いて収集する fact を制限する Ansible は gather_facts（または setup モジュール）で大量の fact を取得するが、これを必要最低限にすることでメモリ使用量を抑えることができる。 gather_subset という setup モジュールのオプションを使う。 gather_facts: no tasks: - name: Gather facts setup: gather_su…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnonylene.hatenablog.jp%2Fentry%2F2019%2F05%2F15%2F171824&quot; title=&quot;Ansible で大量のホストに対して実行する場合のメモリ対策 - Unyablog.&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>2019-05-15 17:18:24</published>
  <title>Ansible で大量のホストに対して実行する場合のメモリ対策</title>
  <type>rich</type>
  <url>https://nonylene.hatenablog.jp/entry/2019/05/15/171824</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
