<?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 の変数では様々な型が扱えますが、基本的にゆるめなため、型をチェックしたいことがあるかもしれません。 いままでは、assert モジュールと、type_debug フィルターを組みわせるチェックする方法しか思いつかなかったのが、こちらを拝見したら is string のような書き方もできることを知りました。 せっかくなので、両方のやり方をまとめます。 動作確認環境 Ansible 2.9.6 Python 3.6.7 [目次] はじめに ■ 方法1: type_debug フィルターを利用する 検証 Playbook 検証結果 ■ 方法2: is [型名] を利用する …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F03%2F29%2Fansible_type_check&quot; title=&quot; [Ansible] assert モジュールで変数の型チェックする - てくなべ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/a/akira6592/20170902/20170902221811.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-29 14:28:43</published>
  <title> [Ansible] assert モジュールで変数の型チェックする</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2020/03/29/ansible_type_check</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
