Re: [ansible-project] pip install docker-compose

2019-04-10 Thread Andrew Meyer
Removed docker-py from root "skipping: [localhost]", "", "TASK [local_docker : Set DockerHub Image Paths] ", "ok: [localhost]", "", "TASK [local_docker : Create /tmp/awxcompose directory]

Re: [ansible-project] pip install docker-compose

2019-04-10 Thread Sebastian Meyer
Ah I saw you have docker-py installed globally and installed docker for your user with pip? https://github.com/ansible/ansible/issues/37958#issuecomment-376320961 Seems like there's a problem with having both. Sebastian On 10.04.19 15:21, Andrew Meyer wrote: > Any other thoughts? > > On Tue

Re: [ansible-project] pip install docker-compose

2019-04-10 Thread Andrew Meyer
Any other thoughts? On Tuesday, April 9, 2019 at 4:15:09 PM UTC-5, Andrew Meyer wrote: > > Root is using the same version. Also I stopped doing that as root. > > [ameyer@awx01 ~]$ python > Python 2.7.5 (default, Oct 30 2018, 23:45:53) > [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2 > Type "h

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Andrew Meyer
Root is using the same version. Also I stopped doing that as root. [ameyer@awx01 ~]$ python Python 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import compose >>> exit() [ameyer

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Sebastian Meyer
On 09.04.19 22:51, Andrew Meyer wrote: > [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 > th

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Andrew Meyer
[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'

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Sebastian Meyer
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

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Andrew Meyer
Added the --user to the pip install and that worked. But still getting this: TASK [geerlingguy.awx : Run the AWX installation playbook.] **

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Jonathan Lozada De La Matta
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/docker/__init__.py' Consider using the `--user` option or check the permissions. you can do this with --user but, again I prefer to use a virtualenv. On Tue, Apr 9, 2019 at 3:47

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Andrew Meyer
pip install docker-compose==1.22 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. Requirement already satisfied: docker-compose==1.22

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Jonathan Lozada De La Matta
that might explain why. You are installing the package under root and you might be running as yourself. I suggest you use virtualenv and install pip using a virtualenv. On Tue, Apr 9, 2019 at 3:41 PM Andrew Meyer wrote: > For pip install I did: > sudo pip install docker-compose==1.22.0 > > Playb

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Andrew Meyer
For pip install I did: sudo pip install docker-compose==1.22.0 Playbook https://github.com/geerlingguy/ansible-role-awx Please remember to reply to all if there are multiple recipients. Andrew Meyer andrewm...@gmail.com ame...@tsg2.com 314-266-4837 On Tue, Apr 9, 2019 at 2:30 PM Jonathan Loza

Re: [ansible-project] pip install docker-compose

2019-04-09 Thread Jonathan Lozada De La Matta
how did you pip install ? and can we see the playbook? On Tue, Apr 9, 2019 at 3:26 PM 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

[ansible-project] pip install docker-compose

2019-04-09 Thread Andrew Meyer
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-comp