Interview Prep/Ansible/Architecture Decisions and Tool Comparisons

What belongs in Ansible variables, and what belongs in a config service such as Consul or SSM Parameter Store?

IntermediateProductionArchitecture Decisions and Tool Comparisons
Answer

Ansible variables are read when the playbook runs, so they suit settings that change with a deploy: package versions, ports, tuning, paths, feature defaults.

A config service suits values that change independently of deploys, or that other systems also read: feature flags, service endpoints, rate limits, anything updated by another team or pipeline.

A practical split:

  • Static per-environment settings: group_vars in Git.
  • Dynamic or shared values: Parameter Store, Consul, AppConfig; Ansible reads them with lookups when it needs them at deploy time, and apps read them at runtime.
  • Secrets: a secret store, never plain variables.

Avoid copying the same value into both places; pick one owner per value.

All Ansible questions Roadmap: Ansible

More on Architecture Decisions and Tool Comparisons