# Creating Execution Environment for AWX

**URL:** <https://forum.ansible.com/t/creating-execution-environment-for-awx/36528>\
**Category:** AWX Project\
**Tags:** awx, ee\
**Created:** [April 13, 2022, 2:47pm UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528 "2022-04-13T14:47:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_PIZZETTA](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Arnaud\_PIZZETTA](https://forum.ansible.com/u/Arnaud_PIZZETTA)\
**Post date:** [April 13, 2022, 2:47pm UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/1 "2022-04-13T14:47:50Z")

</div>

Hi !

I’m currently trying to create a EE for AWX and I’m experiencing some issues.  
i’ve download awx-ee environement for base ([https://github.com/ansible/awx-ee](https://github.com/ansible/awx-ee))

And I’vejust added in **requirements.txt** the **netaddr** module I need.

---------------------------------requirement.txt-------------------------------------  
git+https://github.com/ansible/ansible-builder.git@devel#egg=ansible-builder  
ipaddr  
netaddr

---

<div class="post-metadata">

**Author:** ![Arnaud\_PIZZETTA](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Arnaud\_PIZZETTA](https://forum.ansible.com/u/Arnaud_PIZZETTA)\
**Post date:** [April 13, 2022, 2:49pm UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/2 "2022-04-13T14:49:33Z")

</div>

Sorry for double post but i’ve checked if netaddr is installed with pip list command obviously.

---

<div class="post-metadata">

**Author:** ![Rebeccah\_Hunter](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Rebeccah\_Hunter](https://forum.ansible.com/u/Rebeccah_Hunter)\
**Post date:** [April 13, 2022, 7:40pm UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/3 "2022-04-13T19:40:31Z")

</div>

Hey there, since you’re doing a manual build using docker my first guess is that it could be a versioning issue to me.  
What versions of python, netaddr, and ipaddr you have?  
Cheers,  
Beccah

---

<div class="post-metadata">

**Author:** ![Arnaud\_PIZZETTA](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Arnaud\_PIZZETTA](https://forum.ansible.com/u/Arnaud_PIZZETTA)\
**Post date:** [April 14, 2022, 6:36am UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/4 "2022-04-14T06:36:24Z")

</div>

Hi, first, thanks for you’r reply.  
I found that in my **execution-environment.yml** file, I forgot to set as dependecy my **requirement.txt** file…

So i added this line :  
----------------------------------------- **execution-environment.yml** ------------------------------------------------

---

<div class="post-metadata">

**Author:** ![Arlan\_Lloyd](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Arlan\_Lloyd](https://forum.ansible.com/u/Arlan_Lloyd)\
**Post date:** [April 14, 2022, 7:52am UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/5 "2022-04-14T07:52:50Z")

</div>

Here is an example building from a base Ubuntu image.

[https://github.com/acelinkit/ansibletools/blob/main/Dockerfile](https://github.com/acelinkit/ansibletools/blob/main/Dockerfile)

---

<div class="post-metadata">

**Author:** ![Arnaud\_PIZZETTA](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@Arnaud\_PIZZETTA](https://forum.ansible.com/u/Arnaud_PIZZETTA)\
**Post date:** [April 14, 2022, 9:38am UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/6 "2022-04-14T09:38:21Z")

</div>

Hi guys !

First thanks to you two for answering me.  
I’ve changed my building method by using **ansible-builder**.

Then I push to [quay.io](http://quay.io) with podman push and it works !

Here the steps I followed :

1. Clone git repository of awx-ee locally.
2. Changed requirements (.txt, ;yml and bindep for packages)
3. Comment out **EE\_BASE\_IMAGE: ‘[quay.io/ansible/ansible-runner:latest](http://quay.io/ansible/ansible-runner:latest)’** in **execution-environment.yml** file because ansible-runner refuse it. (why ? I don’t know…)
4. Launch build with **ansible-builder build -t [quay.io/a\_pizzetta/hoplacloud-awx-ee2](http://quay.io/a_pizzetta/hoplacloud-awx-ee2) --build-arg EE\_BASE\_IMAGE=[quay.io/ansible/ansible-runner:latest](http://quay.io/ansible/ansible-runner:latest) -v3**
5. Push to [quay.io](http://quay.io) with **podman push [quay.io/a\_pizzetta/hoplacloud-awx-ee2](http://quay.io/a_pizzetta/hoplacloud-awx-ee2)**
6. Add Execution Environment in my AWX interface with link **[quay.io/a\_pizzetta/hoplacloud-awx-ee2:latest](http://quay.io/a_pizzetta/hoplacloud-awx-ee2:latest)**

And it now works perfectly !

Best regards !  
Arnaud PIZZETTA

---

<div class="post-metadata">

**Author:** ![Gabz\_Modz](https://avatars.discourse-cdn.com/v4/letter/g/6bbea6/32.png) [@Gabz\_Modz](https://forum.ansible.com/u/Gabz_Modz)\
**Post date:** [June 30, 2022, 3:50pm UTC](https://forum.ansible.com/t/creating-execution-environment-for-awx/36528/7 "2022-06-30T15:50:31Z")

</div>

This person is very saver, i love u so much bro its work for me !
