Use ansible to stop/start components of an application

Hello,

I work on a project to manage some applications.

We have some applications and for an application, each component is on a different server.

As we have more than 200 applications, we would like to use ansible to manage them when we have to stop/start for maintenance.

How can i do this?

Best regards

Samuel