How to use proxy while creating Execution Environments in disconnected Ansible Automation Platform 2.x setup ?

Solution Verified - Updated -

Environment

  • Red Hat® Ansible Automation Platform 2.x

Issue

Resolution

  • Need to set the proxy in execution-environment.yml like below:

    additional_build_steps:
    prepend: |
      RUN export http_proxy=proxy.example.com
      RUN export HTTP_PROXY=proxy.example.com
      RUN export https_proxy=proxy.example.com
      RUN export HTTPS_PROXY=proxy.example.com
    

Root Cause

  • There is a known open issue about the customization limitations with Ansible Builder.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments