Used for creating an ansible execution environment
- The environment consists of the following components
- Ansible Core
- Ansible Runner
- Ansible Collections
- First we start by downloading
ansible-builder
viapip3 install ansible-builder
- Next we create the
execution-environment.yml
which specifies the aforementioned components - Invoking the command
ansible-builder create --verbosity 3
results in generating both theDockerfile
and the buildContext
directory
- Github Actions is being used for building the Container image relying on the Containerfile generated by ansible-builder
- The image is stored in Github Container registry and can be pulled via
podman pull ghcr.io/thejaxon/ansible:0.1