requirements.txt
A text file listing the Python packages, and usually their exact versions, that pip should install for a project.
In more detail
The course pins ansible-core==2.21.4 there; the double equals sign means exactly this version, not this or newer. Committing the file means every laptop and every pipeline runs the same engine, which removes a whole class of works-on-my-machine failures.
Example
ansible-core==2.21.4Related terms
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- pinning — Fixing an exact version or digest of something you depend on so it cannot change without you noticing.
- requirements.yml — A YAML file listing the collections and roles a project depends on, with versions, for ansible-galaxy to install.
Taught in
- Installing Ansible — Ansible Configuration Management at Scale