# Ansible-builder / awx-ee change dnf repository sources

**URL:** <https://forum.ansible.com/t/ansible-builder-awx-ee-change-dnf-repository-sources/37158>\
**Category:** AWX Project\
**Tags:** awx, ee\
**Created:** [September 29, 2022, 6:14pm UTC](https://forum.ansible.com/t/ansible-builder-awx-ee-change-dnf-repository-sources/37158 "2022-09-29T18:14:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trippinnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/trippinnik/32/4308_2.png) [@trippinnik](https://forum.ansible.com/u/trippinnik)\
**Post date:** [September 29, 2022, 6:14pm UTC](https://forum.ansible.com/t/ansible-builder-awx-ee-change-dnf-repository-sources/37158/1 "2022-09-29T18:14:58Z")

</div>

I’m unable to build because of connection to outside repositories (we use artifactory). I can’t find where to change this as I usually can do so in the Dockerfile or Makefile.

The awx-ee in the latest build is reporting errors with kerberos authentication due to encryption method, so I need a custom image to deal with this

---

<div class="post-metadata">

**Author:** ![m.nelson](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@m.nelson](https://forum.ansible.com/u/m.nelson)\
**Post date:** [September 29, 2022, 6:20pm UTC](https://forum.ansible.com/t/ansible-builder-awx-ee-change-dnf-repository-sources/37158/2 "2022-09-29T18:20:32Z")

</div>

Hi,

You should be able to set the image URL in the “execution-environment.yml” file like so:

build\_arg\_defaults:

EE\_BASE\_IMAGE: ‘[quay.io/ansible/ansible-runner:stable-2.12-devel](http://quay.io/ansible/ansible-runner:stable-2.12-devel)’

Example here: [https://github.com/antuelle78/ansible-builder-awxee](https://github.com/antuelle78/ansible-builder-awxee)

Hope that helps.

Regards,

Antuelle78

---

<div class="post-metadata">

**Author:** ![trippinnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/trippinnik/32/4308_2.png) [@trippinnik](https://forum.ansible.com/u/trippinnik)\
**Post date:** [September 29, 2022, 6:59pm UTC](https://forum.ansible.com/t/ansible-builder-awx-ee-change-dnf-repository-sources/37158/3 "2022-09-29T18:59:24Z")

</div>

Seems like ran assemble adds back in base internet repos and then I get issues with a bunch of the packages that get upgraded:

2/3] STEP 6/6: RUN assemble  
++ source /etc/os-release  
+++ NAME=‘CentOS Stream’  
+++ VERSION=8  
+++ ID=centos  
+++ ID\_LIKE=‘rhel fedora’  
+++ VERSION\_ID=8  
+++ PLATFORM\_ID=platform:el8  
+++ PRETTY\_NAME=‘CentOS Stream 8’  
+++ ANSI\_COLOR=‘0;31’  
+++ CPE\_NAME=cpe:/o:centos:centos:8  
+++ HOME\_URL=[https://centos.org/](https://centos.org/)  
+++ BUG\_REPORT\_URL=[https://bugzilla.redhat.com/](https://bugzilla.redhat.com/)  
+++ REDHAT\_SUPPORT\_PRODUCT=‘Red Hat Enterprise Linux 8’  
+++ REDHAT\_SUPPORT\_PRODUCT\_VERSION=‘CentOS Stream’  
++ echo centos

- RELEASE=centos
- PKGMGR=
- PKGMGR\_OPTS=
- ‘[’ -z ‘]’
- PKGMGR=/usr/bin/dnf
- ‘[’ -f /usr/bin/microdnf ‘]’
- mkdir -p /output/bindep
- mkdir -p /output/wheels
- mkdir -p /tmp/src
- cd /tmp/src
- /usr/bin/dnf update -y  
CentOS Stream 8 - AppStream 1.6 MB/s | 25 MB 00:15  
CentOS Stream 8 - BaseOS 18 MB/s | 25 MB 00:01  
CentOS Stream 8 - Extras 47 kB/s | 18 kB 00:00  
CentOS Stream 8 - PowerTools 2.3 MB/s | 5.0 MB 00:02  
Extra Packages for Enterprise Linux Modular 8 - 1.1 MB/s | 733 kB 00:00

I replaced the base image with one I built internally and removed all repos then added our repos in the build. Those CentOS ones should not be there - can’t be there - won’t work if there are.
