Interview Prep/Ansible/Architecture Decisions and Tool Comparisons

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_inventory or NetBox) with common group names like role_web and env_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.
All Ansible questions Roadmap: Ansible

More on Architecture Decisions and Tool Comparisons