blob: 5d23ecc9aafecd9e46e53d0fe8ae6f0bc1915085 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# How to build an Ansible Execution Environment
## Prerequisites
This was tested with ansible-builder version 1.1.0.
## Building from Galaxy
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.
## Building from GitHub
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
## References
https://ansible-builder.readthedocs.io/en/stable/usage/
https://docs.ansible.com/automation-controller/latest/html/userguide/ee_reference.html
|