How to configure AWX for using an unreleased version of Ansible

I have installed AWX using the galaxy role 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 question with no luck some days ago on stackoverflow.

Try virtual environment

https://github.com/ansible/awx/blob/devel/docs/custom_virtualenvs.md

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/ -d ’
{
“custom_virtualenv”: “/var/lib/awx/venv/ansible27”
}

Thanks
Davide

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

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

Thanks