Creates a scaffolding for a new ansible role. It was created because the one that comes with Ansible (ansible-galaxy) leaves something to be desired.
*nix OS - Debian, Ubuntu, CentOS, RedHat, Amazon Linux, etc..
newrole_name: the_name_of_the_new_role newrole_dest: /the/path/to/create/the/new/role
None
Step 1 Get the newrole folder onto your computer.
ansible-galaxy install gotansible.newrole
or
ansible-galaxy install gotansible.newrole -p ~/src/pick_a_folder_to_put_it_in
Step 2 Make it easy to run newrole.
echo "alias newrole='/etc/ansible/roles/gotansible.newrole/newrole'" > ~/.profile
source ~/.profile
or (if you picked a specific folder)
echo "alias newrole='/path/to/the/folder/in/step/1/gotansible.newrole/newrole'" > ~/.profile
source ~/.profile
Step 3 Runit
newrole my_groovy_new_role_name
MIT
Created by Franklin Wise in Santa Monica, CA.