If you are tired of writing bash scripts that don't do everything you need to do, try out Ansible. It's based on Python 3 and has a massive community of modules you can use:
https://docs.ansible.com/ansible/2.9/...
I'll show you how to setup Ansible in a brand new Red Hat Enterprise Linux 9 virtual machine. I use Ansible to install everything on my computers. It also helps me automate anything manual when deploying applications to the cloud that aren't covered with GitOps.