I seem to be having an issue when trying to run this playbook for building
AWX.
When I go to run the ansible playbook I get the following error:
"ok: [localhost] => (item=environment.sh)",
"ok: [localhost] => (item=credentials.py)",
"ok: [localhost] => (item=docker-compose.yml)",
"",
"TASK [local_docker : Render SECRET_KEY file]
***********************************",
"ok: [localhost]",
"",
"TASK [local_docker : Start the containers]
*************************************",
"fatal: [localhost]: FAILED! => {\"changed\": false, \"msg\":
\"Unable to load docker-compose. Try `pip install docker-compose`. Error:
cannot import name ImageNotFound\"}",
"\tto retry, use: --limit @/root/awx/installer/install.retry",
"",
"PLAY RECAP
*********************************************************************",
"localhost : ok=8 changed=0 unreachable=0
failed=1 "
]
}
I was getting errors about docker-compose installation prior and tried
installing the specific version the playbook calls for:
pip freeze|grep -i docker
DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 won't be maintained after
that date. A future version of pip will drop support for Python 2.7.
docker-compose==1.22.0
docker-py==1.10.6
docker-pycreds==0.4.0
dockerpty==0.4.1
I'm not sure why this is not working. I am running this against the
localhost.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6db44832-6056-4afe-b1f9-1332fd03e1dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.