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.
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