We find a lot of resources on internet about Ansible to handle server deployement and configuration.

Here is a command line just to highlight that any command can be run on a group of machine from an existing inventory:

ansible -i <inventory> <servergroup> -a "whoami"

If you wan to run some more complex command, the shell module is adviced:

ansible -i jmmc-srv-infra/inventories/prod all -m shell -a "mount | grep nfs"