やること Ansibleのベストプラクティスなディレクトリ構成を、 毎回ゼロから作っていると面倒臭いです。(もしかして楽な方法ある...?) せっかくなので、そのディレクトリ構成と、inventoryやymlファイルの雛形なども、 Ansibleのplaybookで作れるようにしてみようと思いました。 何かに組み込んで使うというよりも、 「新しい環境を、Ansibleで作れるようにしようかなぁ」というときに、 取っ掛かりとしてまず実行して雛形を作成するものです。 前提 たぶん後から修正したり改良したりします。 筆者の環境 macOS Sierra Ansible 2.4.3 知識 Ansibleを知っている 実践 1. 目標 ベストプラクティスなディレクトリ構成のうち、 Alternative Directory Layout を、一部省略しつつ作るようにしようと思います。 invento