Interview Prep/Ansible/Architecture Decisions and Tool Comparisons

What Python version constraints matter for the control node and managed hosts?

AdvancedProductionArchitecture Decisions and Tool Comparisons
Answer

Two separate constraints:

  • Controller: each ansible-core release supports only recent Python versions (for example 2.18 needs Python 3.11 or newer). Running in an EE removes this problem from laptops and CI.
  • Managed nodes: modules run with the target's Python. ansible-core 2.17 dropped Python 2.7 and 3.6 on targets, so old CentOS 7 or RHEL 7 hosts cannot be managed with it.

Production impact: a mixed estate with legacy hosts may need a second, older EE kept around specifically for them, while the rest moves forward. Set ansible_python_interpreter explicitly where auto-discovery picks the wrong Python, and check the ansible-core support matrix before every upgrade. The raw module still works without Python, which is how you bootstrap it.

All Ansible questions Roadmap: Ansible

More on Architecture Decisions and Tool Comparisons