Preprint
Article

This version is not peer-reviewed.

Runbook Mesh: MCP-Orchestrated Terraform and Ansible Co-Execution on Azure

Submitted:

04 March 2026

Posted:

05 March 2026

You are already at the latest version

Abstract
Hybrid use of Terraform for infrastructure andAnsible for configuration is common on Azure, but the two toolsare often joined only by ad hoc scripts and fragile handoffs in CIpipelines. Runbook Mesh proposes a small MCP based controlplane that treats Terraform and Ansible as one coordinatedchange unit rather than two independent stages. Azure DevOpstriggers an MCP server that drives a deployment state machine:it receives Terraform plans and apply results, derives a dynamicAnsible inventory from Terraform outputs, and orchestratesconfiguration playbooks with drain, cordon, and health checksfor VM scale sets, AKS nodes, and virtual machines. TheMCP enforces simple invariants on ordering, handoff safety,and rollback reachability, and packages each deployment intoa witness bundle containing plan digests, state and inventoryhashes, play outcomes, and Azure Resource Graph snapshots.The result is an Azure native pattern where infrastructure andconfiguration share a single timeline, a defined rollback path, anda tamper evident change ledger suited to regulated environments.
Keywords: 
;  ;  ;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated