Installing software should be deterministic and auditable. We have many decades of tool building in devops to facilitate this. It's bonkers to throw that all out for Markdown and LLMs.
Instead, have your LLMs write inputs to those tools. It's an easier task for them anyway and they only have to do it once, then you just run it
Using IaC tools gives you the following advantages:
1. IaC gives you Idempotent solutions- which is advantageous over an agent. What if the agent crashes half way through deployment procedures? How will you reliably resume an interrupted install?
2. IaC gives you reproducible builds
3. IaC gives you ability to install tools in a way that can be tested for compliance with any deployment standards you have
W/r/t frontier models:
Just tell them to go install stuff. They already have so much in their training corpus that you literally do not need to create this.
7b-14b parameter self hosted models may get some benefit from your approach. I find self hosted is less reliable for tasteful approaches. Micromanagement yields better results.