I think anytime anything is done in bash it should be automated for reuse next time. I frequently use vagrant on my local KVM installation on my desktop to test building VMs.
I document every command I make in VSC while building the box. Once the app is built, I destroy and rebuild using automation. Generally it takes 2-3 more builds to getting it fully automated. The awesome thing about vagrant is that you can destroy and craate a vm from the command line in seconds. So you can literally conquer 50% of your script and then conquer 75% to 100% on sequential builds.
It sounds like a lengthy process, but it’s actually quite fast once you get used to it.
What are your thoughts and how are you automating?
Do you ever have reasons not to automate?