<?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>はじめに @ や などをURLエンコード（%40 や %20）したいと思い、Ansible の Filter のページ を参照しましたが、それらしいフィルターはありませでした。 ならばと思って、Jinja2 のドキュメントを見ると urlencode() というフィルターがありました。 この記事では簡単なサンプルで紹介します。 検証環境 Ansible 2.9.9 Jinja2 2.11.2 サンプル --- - hosts: localhost gather_facts: false tasks: - name: debug debug: msg: &quot;{{ item | urlencode(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F07%2F17%2Fansible_urlencode&quot; title=&quot; [Ansible] 記号類をURLエンコードする urlencode() - てくなべ&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-07-17 20:37:56</published>
  <title> [Ansible] 記号類をURLエンコードする urlencode()</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2020/07/17/ansible_urlencode</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
