What is the difference between `ansible-core` and the `ansible` package, and how do you pick versions?
BeginnerProductionArchitecture Decisions and Tool Comparisons
Answer
- ansible-core: the engine (CLI tools,
ansible.builtinmodules, plugins). Versions like 2.18, 2.19. - ansible: a community bundle of ansible-core plus a large set of collections. Versions like 11 (core 2.18) and 12 (core 2.19).
In production we install ansible-core pinned to an exact version and list only the collections we need in requirements.yml, also pinned. That gives smaller EEs, faster builds and explicit upgrades.
pip install "ansible-core==2.18.6"
ansible-galaxy collection install -r collections/requirements.yml
ansible --version
The full ansible package is fine for laptops and learning, where convenience matters more than control.
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