I tried to install AWX with REDHAT6.10.
When I execute de playbook install, it fails…
ansible-playbook -i inventory install.yml -vv
TASK [local_docker : Activate postgres container] **********************************************************************************
task path: /prodbin/unix/awx/installer/roles/local_docker/tasks/standalone.yml:2
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Failed to import docker or docker-py - cannot import name NotFound. Try pip install docker
or pip install docker-py
(Python 2.6)”}
to retry, use: --limit @/prodbin/unix/awx/installer/install.retry
PLAY RECAP *************************************************************************************************************************
localhost : ok=4 changed=0 unreachable=0 failed=1
[root@ejlp286 installer]#
In REDHAT7 I had the same error and I executed
pip uninstall -y docker docker-py && pip install docker
But In RDEHAT6 It fails and it appears a new error:
[root@ejlp286 installer]# ansible-playbook -i inventory install.yml -vv
ansible-playbook 2.6.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.6/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
Using /etc/ansible/ansible.cfg as config file
statically imported: /prodbin/unix/awx/installer/roles/local_docker/tasks/set_image.yml
statically imported: /prodbin/unix/awx/installer/roles/local_docker/tasks/standalone.yml
statically imported: /prodbin/unix/awx/installer/roles/local_docker/tasks/compose.yml
ERROR! Unexpected Exception, this is probably a bug: invalid syntax (connectionpool.py, line 92)
to see the full traceback, use -vvv
[root@ejlp286 installer]#