No description
Find a file
John R Barker d85c6f1001
Syntax highlighting & typoe (#1)
* Syntax highlighting & typoe
2022-01-31 13:47:47 +00:00
ansible.cfg Update ansible.cfg 2021-05-20 13:00:25 -04:00
execution-environment.yml Change params and links 2021-07-19 13:22:42 -04:00
README.md Syntax highlighting & typoe (#1) 2022-01-31 13:47:47 +00:00
requirements.yml Adding basic structure for demo 2021-05-10 15:24:09 -04:00

demo-ee

Creating an EE with your collection on top of Ansible provided ones

Prerequisites

pip install ansible-builder
# Podman or Docker installed on the build system

Edit the requirements.yml file to add your collection present on Ansible Automation Hub

Example

---
collections:
  - name: vyos.vyos

Edit the ansible.cfg file to add your Ansible Automation Hub Token

  • Scroll down to the bottom of the file provided and edit the token key, to add the Offline Token from Ansible Automation Hub.
  • Load and copy the token and edit the ansible.cfg accordingly.

NOTE: In order to login to registry.redhat.io, run the podman login registry.redhat.io command with your registry.redhat.io credentials

Run the following command in the repository after addition to create your own Execution Environment

ansible-builder build -v3 -c . -t <container image name>

Change the <container image name> in above command to the name you want to give to your execution environment

NOTE: Podman is the default container-runtime, add --container-runtime docker to the above command if you want to use docker as the container-runtime