[ameyer@awx01 ~]$ pip --version
pip 19.0.3 from /usr/lib/python2.7/site-packages/pip (python 2.7)
[ameyer@awx01 ~]$ ansible localhost -m setup|grep ansible_python_version
 [WARNING]: provided hosts list is empty, only localhost is available. Note 
that the implicit localhost does not match 'all'
        "ansible_python_version": "2.7.5", 
[ameyer@awx01 ~]$ 



On Tuesday, April 9, 2019 at 3:48:50 PM UTC-5, Sebastian Meyer wrote:
>
> Hi Andrew, 
>
> what's the output of 
>
> pip --version 
>
> and 
>
> ansible localhost -m setup | grep ansible_python_version 
>
> Regards 
> Sebastian 
>
> On 09.04.19 21:26, Andrew Meyer wrote: 
> > 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. 
> > 
>
> -- 
> Sebastian Meyer 
> Linux Consultant & Trainer 
> Mail: [email protected] <javascript:> 
>
> B1 Systems GmbH 
> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de 
> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 
>

-- 
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/ed527578-4d97-4c62-bbfe-fc06d14d683d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to