Skip to content

gotansible/newrole

Repository files navigation

newrole

Build Status Ansible Galaxy

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.

Requirements

*nix OS - Debian, Ubuntu, CentOS, RedHat, Amazon Linux, etc..

Role Variables

newrole_name: the_name_of_the_new_role newrole_dest: /the/path/to/create/the/new/role

Dependencies

None

Setup

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

License

MIT

Author Information

Created by Franklin Wise in Santa Monica, CA.

About

Jumpstarts a new Ansible role with a scaffolding.

Resources

License

Stars

Watchers

Forks

Packages

No packages published