Roles are reusable, well managed and promotes sharing - this i understand 
very well. But somehow, i do not like them much, specially in enterprise 
applications.

The application i am working on is a monolith being converted in small 
independent self contained systems. Each deployment is a combination of a 
set of these components. Each component is managed by a team and these 
components are functionally dependent on each other, i.e. they can be 
installed individually, but for the whole system to function, a set of 
components in required.

I design the deployment automation like this - a playbook for each 
component asking one input - that deployment specific variables. Teams 
responsible for components also maintain these component specific scripts 
and any change will not require mandatory change in another playbook.

Now me and my colleagues have a disagreement in this regard. They are hell 
bent on using roles, simply because that is the way to go. My arguments are:
- There is nothing to reuse really. Component specific stuff is not really 
reusable.
- Any dependency in within ansible scripts should be avoided.
- we are not going to put roles in public/private galaxy 
- We need a playbook to use a combination of roles anyway

I want to know what other people using Ansible for deploying their 
applications think. Do they prefer playbooks for everything or they try to 
introduce as many roles as possible ?

Also, i was a bit surprised to see that importing a playbook is deprecated 
now. I was thinking of writing wrapper playbooks that in turn run a bunch 
of other playbooks in a sequence. I mean what is wrong in that ?

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/158564f8-efcb-48db-b6bd-841224fc7071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to