Skip to content

Instantly share code, notes, and snippets.

@mralexjuarez
Created July 4, 2014 07:20
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mralexjuarez/c4cfae2f6f4f23af1d1b to your computer and use it in GitHub Desktop.
Save mralexjuarez/c4cfae2f6f4f23af1d1b to your computer and use it in GitHub Desktop.
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
@lgg42
Copy link

lgg42 commented Mar 24, 2018

Thanks man! it was useful!

@thelinuxfaq
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