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.
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