<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akishin999</author_name>
  <author_url>https://blog.hatena.ne.jp/akishin999/</author_url>
  <blog_title>akishin999の日記</blog_title>
  <blog_url>https://akishin.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ansible</anon>
  </categories>
  <description>ansible で設定ファイル内の文字列を置換したかったので、 lineinfile モジュールを試してみました。lineinfile http://www.ansibleworks.com/docs/modules.html#lineinfile対象サーバに以下のようなファイルを用意。 /tmp/test.conf foo bar baz bar bar bar foo このファイル内の文字列を置換してみます。以下のような Playbook を作成しました。 lineinfile.yml - hosts: all user: root vars: target_file: /tmp/test…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakishin.hatenablog.jp%2Fentry%2F20130817%2F1376709924&quot; title=&quot; Ansible で複数行の文字列置換 - akishin999の日記&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>http://ecx.images-amazon.com/images/I/51vJDNQ5tjL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-08-17 12:25:24</published>
  <title> Ansible で複数行の文字列置換</title>
  <type>rich</type>
  <url>https://akishin.hatenablog.jp/entry/20130817/1376709924</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
