This industry has automation down pretty well. #DevOps is alive because we all wanted to automate more. It's a solved problem.
Agents don't know how to do this reliably, but you can capture what you want to do in automation code and let agents run that.
Heck, use agents to build the automation.