How would you design Ansible for a hybrid estate across on-prem, AWS and Azure?
AdvancedProductionArchitecture Decisions and Tool Comparisons
Answer
flowchart LR
GIT["Git: playbooks, roles, inventories"] --> CTL["AWX / AAP controller"]
CTL --> MESH1["Execution node in AWS VPC"]
CTL --> MESH2["Execution node in Azure VNet"]
CTL --> MESH3["Execution node in data centre"]
MESH1 --> A["EC2 via SSM or SSH"]
MESH2 --> B["Azure VMs via SSH or WinRM"]
MESH3 --> C["VMware VMs and network gear"]
Key decisions:
- One codebase, roles that branch on
ansible_os_family, not on cloud. - Inventory per source (
aws_ec2,azure_rm,vmware_vm_inventoryor NetBox) with common group names likerole_webandenv_prod. - Execution close to targets via automation mesh, so no broad firewall openings from the controller.
- Credentials per environment using cloud-native identity where possible.
- Same EE everywhere, so behaviour does not depend on location.
More on Architecture Decisions and Tool Comparisons
Ansible or Terraform: where do you draw the line?BeginnerHow does Ansible compare with Puppet, Chef and Salt?IntermediateWhy use Ansible instead of shell scripts?BeginnerWhere does Ansible fit once you run Kubernetes?Intermediatecloud-init or Ansible for first boot configuration?IntermediateWhen would you use AWS Systems Manager instead of, or together with, Ansible?Intermediate