Development and deployment of cross platform Linux servers [closed]
Solution 1:
I've never used it but ansible might be a good solution- its meant for large-scale deployment / host management. I DO know a lot of people that use it for this purpose though.
heres the install guide https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
installing packages to a bunch of endpoints https://opensource.com/article/20/9/install-packages-ansible
just make a few separate playbooks for installing on raspbian / ubuntu. Probably wont be too much of a difference if you dont though.