Is there a Docker Compose -like solution for Ansible?

Hi

We are mostly using ansible for creating/managing our TEST environments.
One environment can contain the different types of services/nodes like:

  • web/application server(s)
  • windows services
  • DBs
  • JMS queues
  • etc

The environment layout (the combination of the above types) can differ per project and per environment.
I would need to orchestrate the creation of an environment.
For docker there is Docker compose which describes the layout of an environment, and in Kubernetes Pod templates they also have some kind of descriptors for this.
But I use good old VMs without containers.

Is there a solution for that using Ansible?
Roles are not for that, neither inventory (with hosts/groups).

Any idea, how should I organize my scripts to achieve that goal?
Or a tool to do that?

Regards:
Bence

I’ve just that inventory with group hosts and group variables could be suitable for storing the description of the environmental layout:
One ‘group’ could be one ‘environment’, one ‘host’ could be one ‘host’ inside the environment, and every related service settings (port, queue, etc) could be stored in group variables

Anybody can suggest a good exmple anywhere to check?

Regards:
Bence

  1. május 3., kedd 13:31:53 UTC+2 időpontban Bence Takács a következőt írta: