<?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>
    <anon>ansible2.10</anon>
  </categories>
  <description>はじめに Ansible 2.10 で path_join というフィルターが追加されました。（対応PR） Python の os.path.join のように、与えられた文字列のリストを、ディレクトリの階層、ファイル名として扱い、/ を必要に応じて補いながら連結してくれます。 通常の文字列連結でもできなくもないですが、ディレクトリ名の末尾に / があるかないかを気にせずに連結できる点が path_join フィルターの良いろころだと思います。 動作確認環境 ansible-base 2.10.1 サンプル --- - hosts: localhost gather_facts: false …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2020%2F09%2F17%2Fansible_path_join&quot; title=&quot; [Ansible] os.path.join のようにいい感じにパスを連結する path_join フィルター - てくなべ&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-09-17 20:21:59</published>
  <title> [Ansible] os.path.join のようにいい感じにパスを連結する path_join フィルター</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2020/09/17/ansible_path_join</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
