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-builderviapip3 install ansible-builder - Next we create the
execution-environment.ymlwhich specifies the aforementioned components - Invoking the command
ansible-builder create --verbosity 3results in generating both theDockerfileand the buildContextdirectory
- 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