Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2014 07:20
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
One-Liner to Create Ansible roles directory structure.
mkdir -p tasks handlers templates files vars meta ; touch tasks/main.yml handlers/main.yml vars/main.yml meta/main.yml
Copy link

lgg42 commented Mar 24, 2018

Thanks man! it was useful!

Copy link

thelinuxfaq commented Jun 12, 2018

You can use ansible-galaxy command to create number of roles

$ mkdir roles && cd roles && sudo ansible-galaxy init your_role_name


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment