# Should deployment scripts have no roles.

**URL:** <https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368>\
**Category:** Ansible Project\
**Created:** [September 28, 2015, 10:40am UTC](https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368 "2015-09-28T10:40:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@David\_Gonzalez](https://forum.ansible.com/u/David_Gonzalez)\
**Post date:** [September 28, 2015, 10:40am UTC](https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368/1 "2015-09-28T10:40:52Z")

</div>

Hi,  
Given that in my case provisioning doesn’t rely on Ansible yet.  
Does it make sense that deployment playbooks have no roles at all?  
I’m getting to a point where my playbooks are just a list of tasks which I gather in various “include” files grouped by what are they doing because I don’t see them “roleable”.  
I mean, it makes no sense for me to have a rol “deploy app” since deployment is a set of actions not a setup describing.  
For me “being a tomcat server” is obviously a rol, but “release last version” is a bunch of actions (checkout, stop server, deploy, start server…)

Is that approach correct?  
Which is the way you organize your deployment tasks?

Thanks in advance.

David.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [September 28, 2015, 12:38pm UTC](https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368/2 "2015-09-28T12:38:22Z")

</div>

Roles are a way to organize and reuse, if you don't need to do so, it  
makes sense you don't use them. Task includes can also be used to do  
the same, but are limited to just tasks.

In the end, do what works for you.

---

<div class="post-metadata">

**Author:** ![David\_Gonzalez](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@David\_Gonzalez](https://forum.ansible.com/u/David_Gonzalez)\
**Post date:** [September 30, 2015, 7:17am UTC](https://forum.ansible.com/t/should-deployment-scripts-have-no-roles/19368/3 "2015-09-30T07:17:51Z")

</div>

I’m doing it in tasks just because “tasks” like “download war file from nexus” or “check last release deployed” don’t seem to be a role.

Well, as you said, “do what works for you”.

Thanks

😉
