<?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 (Qiita版) の 21日目の記事です。 ■ はじめに Ansible には callback plugin という仕組みがあり、結果出力の形式を変更できます。 JSON Callback Plugin もあり、Playbook の実行結果を JSON で得て、jq などと組み合わせて必要な箇所だけ切り取って表示できます。 この記事では、簡単なサンプルでご紹介します。 動作確認環境 ansible 2.9.14 前提とする Playbook 以下の Playbook で試すこととします。Cisco IOS のネットワーク機器に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F12%2F21%2Fansible_json_callback_plugin&quot; title=&quot; [Ansible] Playbook 実行結果ログを JSON で出力して jq で抽出する - てくなべ&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-21 18:52:01</published>
  <title> [Ansible] Playbook 実行結果ログを JSON で出力して jq で抽出する</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2020/12/21/ansible_json_callback_plugin</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
