<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekonenene</author_name>
  <author_url>https://blog.hatena.ne.jp/nekonenene/</author_url>
  <blog_title>ハトネコエ Web がくしゅうちょう</blog_title>
  <blog_url>https://nekonenene.hatenablog.com/</blog_url>
  <categories>
    <anon>Ansible</anon>
    <anon>プログラミング系</anon>
    <anon>サーバー</anon>
    <anon>shell</anon>
    <anon>パッケージ管理</anon>
    <anon>設定</anon>
    <anon>Ubuntu</anon>
    <anon>Linux</anon>
    <anon>Web制作</anon>
  </categories>
  <description>冪等性（べきとうせい）を考えて、 パッケージ（コマンド）を apt で初めてインストールするときだけ処理をしたい。 という要望が自分の中で湧いてきて、さてどうしようと調べるも、なかなか出てこない。 「already installed ansible」とGoogle検索かけたら以下のサイトがヒットして、とても役立ちました。 Ansibleで冪等性を保つためにはfailed_whenとかstatを使うと便利 - 銀色うつ時間 いろいろ試してみたら、もうちょっと直感的な見た目に書けましたので、 それをご紹介。 それにあたりこちらのサイトも役立ちました。 ansibleでの実行結果のsuccess/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekonenene.hatenablog.com%2Fentry%2F2017%2F04%2F30%2F230711&quot; title=&quot;Ansible で、コマンドが存在するかどうかで処理を変える方法 - ハトネコエ Web がくしゅうちょう&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>2017-04-30 23:07:11</published>
  <title>Ansible で、コマンドが存在するかどうかで処理を変える方法</title>
  <type>rich</type>
  <url>https://nekonenene.hatenablog.com/entry/2017/04/30/230711</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
