Re: [ansible-project] Should deployment scripts have no roles.

2015-09-30 Thread David González
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

;)

El lunes, 28 de septiembre de 2015, 14:38:29 (UTC+2), Brian Coca escribió:
>
> 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. 
>
>
> -- 
> Brian Coca 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/75cbeadc-dcc5-4e82-88aa-e4ffbbb7125d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Should deployment scripts have no roles.

2015-09-28 Thread Brian Coca
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.


-- 
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3DENmx-5jt%3DzrJXkNT1UPdjmfU07dMh3EKPBYd6tWASWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Should deployment scripts have no roles.

2015-09-28 Thread David González
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.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/17e2607c-ed0b-40c7-a766-a2e172f91f1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.