Skip to content

Instantly share code, notes, and snippets.

@masahide
Forked from hnakamur/ansible-directories.yml
Last active December 21, 2015 15:29
Show Gist options
  • Select an option

  • Save masahide/6326652 to your computer and use it in GitHub Desktop.

Select an option

Save masahide/6326652 to your computer and use it in GitHub Desktop.
- hosts: localhost
connection: local
gather_facts: no
vars:
role: common
tasks:
- name: create directories for ansible files.
file: path={{ item }} state=directory
with_items:
- group_vars
- host_vars
- roles/{{ role }}/tasks
- roles/{{ role }}/handlers
- roles/{{ role }}/templates
- roles/{{ role }}/files
- roles/{{ role }}/vars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment