requirements.yml

A YAML file listing the collections and roles a project depends on, with versions, for ansible-galaxy to install.

In more detail

Keep it beside the playbooks and install from it in a controlled setup step: ansible-galaxy install -r requirements.yml. Review changes to it like code, because a new version of a dependency can change what runs on every host.

Example

collections:
  - name: ansible.posix
    version: 2.0.0

Related terms

Taught in

References

Certification courses