This was tested with ansible-builder version 1.1.0.
Using the files in the ansible_collections/netapp/ontap/execution_environments/from_galaxy directory as a template:
- execution-environment.yml describes the build environment.
- requirements.yml defines the collections to add into you execution environment.
Then build with:
ansible-builder build
For instance, using podman instead of docker, and tagging:
ansible-builder build --container-runtime=podman --tag myregistry.io/ansible-ee-netapp:21.24.1 -f execution-environment.yml -v 3
In my case, I needed to use sudo.
Alternativaly, the source code can be downloaded from GitHub. It allows to get code before release (at your own risks) or to use a fork. See ansible_collections/netapp/ontap/execution_environments/from_github/requirements.yml
https://ansible-builder.readthedocs.io/en/stable/usage/
https://docs.ansible.com/automation-controller/latest/html/userguide/ee_reference.html