There’s always pyinfra.
However. The easiest solution is probably a custom shell script that checks which OS it is and does different things based on that. It doesn’t have to pretty as long as it works for you.
Edit: Why do you keep reinstalling your operating system?





Please use some less shit source than that website.