<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyagi</author_name>
  <author_url>https://blog.hatena.ne.jp/kyagi/</author_url>
  <blog_title>blog.ayakumo.net</blog_title>
  <blog_url>https://blog.ayakumo.net/</blog_url>
  <categories>
    <anon>ansible</anon>
  </categories>
  <description>複数ホストへコマンドを一括実行したい時 複数ホストに一括してコマンドを実行したい時がたまにあります。繰り返す作業ではなく、ざっとログにエラーメッセージが出ていないかなどをアドホックに確認したい時など。これは ansible の command module を利用することで実現できます。 $ pyenv exec ansible -i inventory webservers -u ec2-user --become -K --become-user root -a 'bash -c &quot;grep slow_flush_log_threshold /var/log/td-agent/td-age…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.ayakumo.net%2Fentry%2F2022%2F07%2F30%2F204239&quot; title=&quot;ansible の command module を使用して複数ホストのログを確認する - blog.ayakumo.net&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>2022-07-30 20:42:39</published>
  <title>ansible の command module を使用して複数ホストのログを確認する</title>
  <type>rich</type>
  <url>https://blog.ayakumo.net/entry/2022/07/30/204239</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
