- Create Custom Collection
- Create Custom EE with collection from point 1
- Upload Custom EE to On-Prem Automation Hub
- Use Custom Collection with ansible-navigator
- Use Custom Collection with Controller
ansible-galaxy collection init --init-path ./ jacek.custom_app
Place Roles, modules, plugins etc.
In my case I will copy previously prepared roles and copy modules from ansible.posix collection
In collection dir start following:
ansible-galaxy collection build- Create namespace on Hub
- Upload collection archive
podman login registry.redhat.io---
collections:
- jacek.custom_app
[galaxy]
server_list = published_repo
[galaxy_server.published_repo]
url=https://jskauthub.redhat.lab/api/galaxy/content/published/
token=version: 1
build_arg_defaults:
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: "-v"
EE_BASE_IMAGE: 'registry.redhat.io/ansible-automation-platform-22/ee-minimal-rhel8'
ansible_config: 'ansible.cfg'
dependencies:
galaxy: requirements.yml
# python: requirements.txt
# system: bindep.txt
additional_build_steps:
prepend: |
RUN whoami
RUN cat /etc/os-release
append:
- RUN echo This is a post-install command!
- RUN ls -la /etcansible-builder build -f custom_app_ee_def.yml -t custom_app_eepodman login jskauthub.redhat.lab --tls-verify=false
podman push Image_ID docker://jskauthub.redhat.lab/custom_aap_ee --tls-verify=false