

You can use host_vars to set different variables per host. You’d still run the same playbook against both hosts, but each has different services activated.
- Make the folder host_vars in the repo root
- Make subfolders for every host with their hostname
- Enable services you want by writing the variables into a yaml file for your host (any file name as long as it ends with .yml
- Write an Ansible inventory for your hosts
- Run the playbook with your inventory
Slightly fancier would be using group_vars instead, you can add a host to multiple groups. Then deploying the same services on a new hosts would simply be adding it to the group













Lemmy has a perfectly fine cross posting feature you could use