<?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>■ はじめに role を構成する際、vars ディレクトリ配下に main.yml を作成して、変数を読み込ませます。 普通に考えると、vars/main.yml という1つのファイルしか読み込めなさそうですが、複数のファイルに分割しておきたいこともあるかもしれません。 公式ドキュメントに載っていたわけではありませんが、vars ディレクトリ配下にさらに main ディレクトリ を用意して、その中に変数ファイルを置いておくと、まとめて読み込んでくれました。 「試したらできた」というレベルではありますが、この記事では簡単な例を元にして説明します。 環境 Ansible 2.9.0 ※ 将来仕様…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftekunabe.hatenablog.jp%2Fentry%2F2019%2F11%2F24%2Fansible_role_multiple_vars_files&quot; title=&quot; [Ansible] role の vars ディレクトリ配下に複数の変数ファイルを配置してまとめて読み込む方法 - てくなべ&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/20191124/20191124145421.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-24 14:56:39</published>
  <title> [Ansible] role の vars ディレクトリ配下に複数の変数ファイルを配置してまとめて読み込む方法</title>
  <type>rich</type>
  <url>https://tekunabe.hatenablog.jp/entry/2019/11/24/ansible_role_multiple_vars_files</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
