Hi All,
I’ve seen https://github.com/ansible/awx/issues/1447 which indicates that Python3 is not supported. Is there a way to bolt on support or is it something the requires patiences, until support for it is released?
Best regards
Rod
Hi All,
I’ve seen https://github.com/ansible/awx/issues/1447 which indicates that Python3 is not supported. Is there a way to bolt on support or is it something the requires patiences, until support for it is released?
Best regards
Rod
We’re still working on this, see: https://github.com/ansible/awx/pull/2538
Note this is the overall porting effort and we’re targeting landing this over the next few months.
Hi Matthew,
Thanks for the reply. Would installing Python3 in the awx_task
container and changing the shebang in the inventory script to point to
the Python3 path work?
Best regards
Rod
You would want to try creating a python 3 virtualenv … otherwise some other awx tooling will have problems with it.
Hi Matthew,
Would installing Python3 in awx-task container and setting the shebang to point to python3? Or would Python3 need to be installed in the ansible venv?
Rod
Hi Matthew,
I'm doubting whether what I sent earlier makes any sense. I think I've
read that AWX runs Ansible within a virtual environment. I'm running
AWX 2.1.0 and see 2 virtual environments; "awx" & "ansible" in
/var/lib/awx/venv on both awxweb & awxtask container. As far as I
understand a Python virtual environment should contain only a single
Python version. If this is correct then how should the setup look to
run a Python3 inventory script? Is it possible to run Ansible inside a
Python2 virtual environment and have it run an inventory script in a
different virtual environment for Python3?
Best regards
Rod