# playbook for role creation with best practice in mind

**URL:** <https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744>\
**Category:** Ansible Project\
**Created:** [October 22, 2013, 3:32pm UTC](https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744 "2013-10-22T15:32:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Tislow](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@Luke\_Tislow](https://forum.ansible.com/u/Luke_Tislow)\
**Post date:** [October 22, 2013, 3:32pm UTC](https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744/1 "2013-10-22T15:32:51Z")

</div>

Heyo -

1/4 of the way through a bash script… I figured out I should just write a playbook to setup a role structure with initial files and such.

Here you go - [https://github.com/lowwalker/ansible\_role\_scaffold](https://github.com/lowwalker/ansible_role_scaffold)

Also, the initial files will take the varible also ending up with initially commented files like below :

---

<div class="post-metadata">

**Author:** ![John\_Jarvis](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@John\_Jarvis](https://forum.ansible.com/u/John_Jarvis)\
**Post date:** [October 22, 2013, 3:48pm UTC](https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744/2 "2013-10-22T15:48:54Z")

</div>

We also have one of these.  
[https://github.com/edx/configuration/tree/master/playbooks/roles/ansible-role](https://github.com/edx/configuration/tree/master/playbooks/roles/ansible-role)

-John

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 23, 2013, 6:35pm UTC](https://forum.ansible.com/t/playbook-for-role-creation-with-best-practice-in-mind/13744/3 "2013-10-23T18:35:17Z")

</div>

Great guys!

At AnsibleFest we just announced “Galaxy” which is a way to share roles online that we will be releasing (at least in beta form) in November.

I would love to work with you guys to get this built into the “ansible-galaxy” CLI tool, which will generate stub roles and also be able to download them from the galaxy site.

Sound good?

We haven’t started on the CLI yet but it will be available soon – though galaxy isn’t “turned on” for a while unless you know a server location.

Would you be ok with licensing these GPLv3 preemptively so we could merge concepts?
