LoginSignup
81
69

More than 5 years have passed since last update.

[Ansible] ディレクトリが無かったら作成する

Last updated at Posted at 2013-08-09

ディレクトリを作るのだからdirectoryモジュールがあるのかなと思ってFiles Modules — Ansible Documentationを見ると、無いなーとなるのですが、実はfileモジュールでstateパラメータにdirectoryと指定するとディレクトリを作成出来ます。

- name: nginx location config file directory
  file: path=/etc/nginx/conf.d/location.d state=directory owner=root group=root mode=0755
81
69
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
81
69