# How to configure AWX for using an unreleased version of Ansible

**URL:** <https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629>\
**Category:** AWX Project\
**Tags:** awx, galaxy-ng\
**Created:** [September 21, 2018, 1:09pm UTC](https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629 "2018-09-21T13:09:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide\_Cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@Davide\_Cavestro](https://forum.ansible.com/u/Davide_Cavestro)\
**Post date:** [September 21, 2018, 1:09pm UTC](https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629/1 "2018-09-21T13:09:58Z")

</div>

I have installed AWX using [the galaxy role](https://galaxy.ansible.com/geerlingguy/awx) obtained from ansible-galaxy install geerlingguy.awx.

AFAIK it installs the _devel_ branch of _awx_, however jobs still use the stable version of ansible.

Is there a way to control the version of ansible used by jobs when running playbooks from AWX?

PS: I’ve [asked the same](https://stackoverflow.com/questions/52371437/how-to-configure-awx-for-using-an-unreleased-version-of-ansible) question with no luck some days ago on stackoverflow.

---

<div class="post-metadata">

**Author:** ![Sujith\_A\_R1](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sujith\_A\_R1](https://forum.ansible.com/u/Sujith_A_R1)\
**Post date:** [September 21, 2018, 2:06pm UTC](https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629/2 "2018-09-21T14:06:31Z")

</div>

Try virtual environment

[https://github.com/ansible/awx/blob/devel/docs/custom\_virtualenvs.md](https://github.com/ansible/awx/blob/devel/docs/custom_virtualenvs.md)

---

<div class="post-metadata">

**Author:** ![Davide\_Cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@Davide\_Cavestro](https://forum.ansible.com/u/Davide_Cavestro)\
**Post date:** [October 10, 2018, 1:44pm UTC](https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629/3 "2018-10-10T13:44:41Z")

</div>

Great,  
so now that ansible 2.7.0 has been released it worked with the following steps:

docker exec -it awx\_web bash

virtualenv /var/lib/awx/venv/ansible27  
yum install -y gcc  
yum install -y python-devel  
/var/lib/awx/venv/ansible27/bin/pip install python-memcached psutil  
/var/lib/awx/venv/ansible27/bin/pip install -U “ansible == 2.7.0”

exit

curl -u ‘admin:password’ -X PATCH -H ‘Content-Type: application/json’ [http://127.0.0.1/api/v2/organizations/MYORG/](http://127.0.0.1/api/v2/organizations/MYORG/) -d ’  
{  
“custom\_virtualenv”: “/var/lib/awx/venv/ansible27”  
}  
’

Thanks  
Davide

---

<div class="post-metadata">

**Author:** ![Sujith\_A\_R1](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@Sujith\_A\_R1](https://forum.ansible.com/u/Sujith_A_R1)\
**Post date:** [October 10, 2018, 1:53pm UTC](https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629/4 "2018-10-10T13:53:59Z")

</div>

The same steps needs to perform awx\_task container as well. So that job execution in AWX works with respective ansible version

---

<div class="post-metadata">

**Author:** ![Davide\_Cavestro](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@Davide\_Cavestro](https://forum.ansible.com/u/Davide_Cavestro)\
**Post date:** [October 10, 2018, 2:51pm UTC](https://forum.ansible.com/t/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/28629/5 "2018-10-10T14:51:32Z")

</div>

Great: actually I did it, but I wasn’t sure it was really needed.  
I updated the steps at [https://stackoverflow.com/questions/52371437/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/52741779#52741779](https://stackoverflow.com/questions/52371437/how-to-configure-awx-for-using-an-unreleased-version-of-ansible/52741779#52741779)

Thanks
