68 lines
2.1 KiB
YAML

---
version: 3
build_arg_defaults:
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '--pre'
dependencies:
galaxy:
collections:
- ansible.controller
- ansible.hub
- ansible.platform
- infra.ah_configuration
- infra.controller_configuration
- ansible.posix
- community.general
- containers.podman
- redhat.insights
- redhat.rhel_system_roles
- ansible.windows
- chocolatey.chocolatey
- community.windows
- amazon.aws
- redhat.satellite
- ansible.netcommon
- cisco.ios
- cisco.iosxr
- cisco.nxos
- network.backup
python:
- pywinrm>=0.4.3
python_interpreter:
python_path: /usr/bin/python3.11
images:
base_image:
name: registry.redhat.io/ansible-automation-platform-25/ee-minimal-rhel9:latest
additional_build_files:
- src: ansible.cfg
dest: configs
options:
package_manager_path: /usr/bin/microdnf
additional_build_steps:
prepend_base:
- RUN echo This is a prepend base command!
prepend_galaxy:
- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg
- ENV ANSIBLE_GALAXY_SERVER_LIST='certified, validated, community_galaxy'
- ENV ANSIBLE_GALAXY_SERVER_CERTIFIED_URL=https://console.redhat.com/api/automation-hub/content/published/
- ENV ANSIBLE_GALAXY_SERVER_CERTIFIED_AUTH_URL=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
- ENV ANSIBLE_GALAXY_SERVER_VALIDATED_URL=https://console.redhat.com/api/automation-hub/content/validated/
- ENV ANSIBLE_GALAXY_SERVER_VALIDATED_AUTH_URL=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
- ENV ANSIBLE_GALAXY_SERVER_COMMUNITY_GALAXY_URL=https://galaxy.ansible.com/
# Update environment variables with new token values to regenerate the execution environment
# Token can be generated at https://console.redhat.com/ansible/automation-hub/token
# Pass both ARGs into Ansible-Builder
- ARG ANSIBLE_GALAXY_SERVER_CERTIFIED_TOKEN
- ARG ANSIBLE_GALAXY_SERVER_VALIDATED_TOKEN
build_arg_defaults:
ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '--ignore-certs'
...