Should Ansible do application deployments or should a CD tool?
AdvancedProductionArchitecture Decisions and Tool Comparisons
Answer
It depends on where the app runs.
- VMs and bare metal: Ansible is a solid deployment engine. Rolling batches, load balancer drain, health checks and rollback are all first-class. Often the CD tool (Jenkins, GitHub Actions, GitLab) orchestrates the pipeline and calls Ansible for the deploy step.
- Containers on Kubernetes or ECS: use the platform's native deploy (Argo CD, Helm, ECS deployments with circuit breakers). Ansible adds a layer without adding value.
- Serverless: SAM, CDK or Terraform.
Signs Ansible deploys have outgrown their place: you are building a release dashboard, approval system and history on top of it. At that point a CD platform with Ansible as an executor is the better design.
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