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] 
*", 
"ok: [localhost]", 
"", 
"TASK [local_docker : Create Docker Compose Configuration] 
**", 
"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\": 
\"Failed to import docker or docker-py - cannot import name certs. Try `pip 
install docker` or `pip install docker-py` (Python 2.6)\"}", 
"\tto retry, use: --limit @/root/awx/installer/install.retry", 
"", 
"PLAY RECAP 
*", 
"localhost  : ok=8changed=0unreachable=0
failed=1   "
]
}
to retry, use: --limit @/home/ameyer/awx-role.retry

PLAY RECAP 
***
localhost  : ok=31   changed=1unreachable=0
failed=1   

[ameyer@awx01 ~]$ 




On Wednesday, April 10, 2019 at 3:13:25 PM UTC-5, Sebastian Meyer wrote:
>
> 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 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 "help", "copyright", "credits" or "license" for more information. 
> > import compose 
> > exit() 
> >> [ameyer@awx01 ~]$ 
> >> 
> >> 
> >> 
> >> On Tuesday, April 9, 2019 at 4:09:16 PM UTC-5, Sebastian Meyer wrote: 
> >>> 
> >>> 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 
>  that the implicit localhost does not match 'all' 
>  "ansible_python_version": "2.7.5", 
>  [ameyer@awx01 ~]$ 
> >>> Okay so it seems they are using the same python version. Does 
> executing 
> >>> python and importing compose work? 
> >>> 
> >>> $ python 
> >>> Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 
> >>> Type "help", "copyright", "credits" or "license" for more information. 
> >> import compose 
> >> 
> >>> 
> >>> I noticed you executed the installer playbook with root. Could you 
> check 
> >>> pip and ansible_python_version there too? Just to be sure there's no 
> >>> mixup there. 
> >>> 
> >>> Regards 
> >>> Sebastian 
> >>> 
> >>> -- 
> >>> Sebastian Meyer 
> >>> Linux Consultant & Trainer 
> >>> Mail: me...@b1-systems.de 
> >>> 
> >>> B1 Systems GmbH 
> >>> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de 
> >>> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 
> >>> 
> >> 
> > 
>
> -- 
> Sebastian Meyer 
> Linux Consultant & Trainer 
> Mail: me...@b1-systems.de  
>
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0654ef93-0ee1-4df0-a67f-ea35f8d5a10b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 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 "help", "copyright", "credits" or "license" for more information.
> import compose
> exit()
>> [ameyer@awx01 ~]$ 
>>
>>
>>
>> On Tuesday, April 9, 2019 at 4:09:16 PM UTC-5, Sebastian Meyer wrote:
>>>
>>> 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 
 that the implicit localhost does not match 'all' 
 "ansible_python_version": "2.7.5", 
 [ameyer@awx01 ~]$ 
>>> Okay so it seems they are using the same python version. Does executing 
>>> python and importing compose work? 
>>>
>>> $ python 
>>> Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 
>>> Type "help", "copyright", "credits" or "license" for more information. 
>> import compose 
>>
>>>
>>> I noticed you executed the installer playbook with root. Could you check 
>>> pip and ansible_python_version there too? Just to be sure there's no 
>>> mixup there. 
>>>
>>> Regards 
>>> Sebastian 
>>>
>>> -- 
>>> Sebastian Meyer 
>>> Linux Consultant & Trainer 
>>> Mail: me...@b1-systems.de 
>>>
>>> B1 Systems GmbH 
>>> Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de 
>>> GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 
>>>
>>
> 

-- 
Sebastian Meyer
Linux Consultant & Trainer
Mail: me...@b1-systems.de

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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e539b6a5-4779-232d-ebab-070ed0fd482c%40b1-systems.de.
For more options, visit https://groups.google.com/d/optout.


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 "help", "copyright", "credits" or "license" for more information.
> >>> import compose
> >>> exit()
> [ameyer@awx01 ~]$ 
>
>
>
> On Tuesday, April 9, 2019 at 4:09:16 PM UTC-5, Sebastian Meyer wrote:
>>
>> 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 
>> > that the implicit localhost does not match 'all' 
>> > "ansible_python_version": "2.7.5", 
>> > [ameyer@awx01 ~]$ 
>> Okay so it seems they are using the same python version. Does executing 
>> python and importing compose work? 
>>
>> $ python 
>> Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 
>> Type "help", "copyright", "credits" or "license" for more information. 
>> >>> import compose 
>> >>> 
>>
>> I noticed you executed the installer playbook with root. Could you check 
>> pip and ansible_python_version there too? Just to be sure there's no 
>> mixup there. 
>>
>> Regards 
>> Sebastian 
>>
>> -- 
>> Sebastian Meyer 
>> Linux Consultant & Trainer 
>> Mail: me...@b1-systems.de 
>>
>> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8eb796f4-8995-4abb-8a37-94dee2091822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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@awx01 ~]$ 



On Tuesday, April 9, 2019 at 4:09:16 PM UTC-5, Sebastian Meyer wrote:
>
> 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 
> > that the implicit localhost does not match 'all' 
> > "ansible_python_version": "2.7.5", 
> > [ameyer@awx01 ~]$ 
> Okay so it seems they are using the same python version. Does executing 
> python and importing compose work? 
>
> $ python 
> Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2 
> Type "help", "copyright", "credits" or "license" for more information. 
> >>> import compose 
> >>> 
>
> I noticed you executed the installer playbook with root. Could you check 
> pip and ansible_python_version there too? Just to be sure there's no 
> mixup there. 
>
> Regards 
> Sebastian 
>
> -- 
> Sebastian Meyer 
> Linux Consultant & Trainer 
> Mail: me...@b1-systems.de  
>
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5aaf8ae2-f15c-481d-981b-6d4cefad6217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 
> that the implicit localhost does not match 'all'
> "ansible_python_version": "2.7.5", 
> [ameyer@awx01 ~]$ 
Okay so it seems they are using the same python version. Does executing
python and importing compose work?

$ python
Python 2.7.14 (default, Oct 12 2017, 15:50:02) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import compose
>>>

I noticed you executed the installer playbook with root. Could you check
pip and ansible_python_version there too? Just to be sure there's no
mixup there.

Regards
Sebastian

-- 
Sebastian Meyer
Linux Consultant & Trainer
Mail: me...@b1-systems.de

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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/35009569-d264-77f0-beca-b6e39ba4ad6b%40b1-systems.de.
For more options, visit https://groups.google.com/d/optout.


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'
"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=8changed=0unreachable=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: me...@b1-systems.de  
>
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.


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 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=8changed=0unreachable=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: me...@b1-systems.de

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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8860cd05-4f51-6b03-8974-56485718e857%40b1-systems.de.
For more options, visit https://groups.google.com/d/optout.


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.] 
**
task path: 
/home/ameyer/.ansible/roles/geerlingguy.awx/tasks/awx-install-playbook.yml:2
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: ameyer
<127.0.0.1> EXEC /bin/sh -c 'echo ~ameyer && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649 `" && 
echo ansible-tmp-1554839414.75-83474730582649="` echo 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649 `" ) && 
sleep 0'
Using module file 
/usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
<127.0.0.1> PUT 
/home/ameyer/.ansible/tmp/ansible-local-98678EhZOoy/tmpLfW5zb TO 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649/ 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649/AnsiballZ_command.py
 
&& sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo 
BECOME-SUCCESS-wtxbjahsfqkrpizyadbjrnwbhgjdbasv; /usr/bin/python2 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649/AnsiballZ_command.py'"'"'
 
&& sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r 
/home/ameyer/.ansible/tmp/ansible-tmp-1554839414.75-83474730582649/ > 
/dev/null 2>&1 && sleep 0'
fatal: [localhost]: FAILED! => {
"changed": true, 
"cmd": [
"ansible-playbook", 
"-i", 
"inventory", 
"install.yml", 
"-e", 
"postgres_data_dir=/var/lib/pgdocker"
], 
"delta": "0:00:07.347671", 
"end": "2019-04-09 14:50:22.280054", 
"invocation": {
"module_args": {
"_raw_params": "ansible-playbook -i inventory install.yml -e 
postgres_data_dir=/var/lib/pgdocker", 
"_uses_shell": false, 
"argv": null, 
"chdir": "/root/awx/installer", 
"creates": "/etc/awx_playbook_complete", 
"executable": null, 
"removes": null, 
"stdin": null, 
"warn": true
}
}, 
"msg": "non-zero return code", 
"rc": 2, 
"start": "2019-04-09 14:50:14.932383", 
"stderr": "", 
"stderr_lines": [], 
"stdout": "\nPLAY [Build and deploy AWX] 
\n\nTASK [Gathering 
Facts] *\nok: 
[localhost]\n\nTASK [check_vars : include_tasks] 
**\nskipping: 
[localhost]\n\nTASK [check_vars : include_tasks] 
**\nincluded: 
/root/awx/installer/roles/check_vars/tasks/check_docker.yml for 
localhost\n\nTASK [check_vars : postgres_data_dir should be defined] 
\nok: [localhost] => {\n\"changed\": false, \n  
  \"msg\": \"All assertions passed\"\n}\n\nTASK [check_vars : host_port 
should be defined] \nok: [localhost] => 
{\n\"changed\": false, \n\"msg\": \"All assertions 
passed\"\n}\n\nTASK [image_build : Set global version if not provided] 
\nskipping: [localhost]\n\nTASK [image_build : 
Verify awx-logos directory exists for official install] \nskipping: 
[localhost]\n\nTASK [image_build : Copy logos for inclusion in sdist] 
*\nskipping: [localhost]\n\nTASK [image_build : Set 
sdist file name] ***\nskipping: 
[localhost]\n\nTASK [image_build : AWX Distribution] 
**\nskipping: [localhost]\n\nTASK 
[image_build : Stat distribution file] 
\nskipping: [localhost]\n\nTASK 
[image_build : Clean distribution] 
\nskipping: [localhost]\n\nTASK 
[image_build : Build sdist builder image] 
*\nskipping: [localhost]\n\nTASK 
[image_build : Build AWX distribution using container] 
\nskipping: [localhost]\n\nTASK [image_build : Build 
AWX distribution locally] \nskipping: 
[localhost]\n\nTASK [image_build : Set docker build base path] 
\nskipping: [localhost]\n\nTASK 
[image_build : Set awx_web image name] 
\nskipping: [localhost]\n\nTASK 
[image_build : Set awx_task image name] 
***\nskipping: [localhost]\n\nTASK 
[image_build : Ensure directory exists] 
***\nskipping: [localhost]\n\nTASK 
[image_build : Stage sdist] 
***\nskipping: 
[

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 PM Andrew Meyer  wrote:

> 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 in
> /usr/lib/python2.7/site-packages (1.22.0)
> Requirement already satisfied: PyYAML<4,>=3.10 in
> /usr/lib64/python2.7/site-packages (from docker-compose==1.22) (3.10)
> Requirement already satisfied: backports.ssl-match-hostname>=3.5;
> python_version < "3.5" in /usr/lib/python2.7/site-packages (from
> docker-compose==1.22) (3.5.0.1)
> Requirement already satisfied: six<2,>=1.3.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.9.0)
> Collecting docker<4.0,>=3.4.1 (from docker-compose==1.22)
>   Using cached
> https://files.pythonhosted.org/packages/48/68/c3afca1a5aa8d2997ec3b8ee822a4d752cf85907b321f07ea86888545152/docker-3.7.2-py2.py3-none-any.whl
> Requirement already satisfied: texttable<0.10,>=0.9.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.9.1)
> Requirement already satisfied: dockerpty<0.5,>=0.4.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.4.1)
> Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3"
> in /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.0.16)
> Requirement already satisfied:
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (2.18.4)
> Requirement already satisfied: websocket-client<1.0,>=0.32.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.56.0)
> Requirement already satisfied: enum34<2,>=1.0.4; python_version < "3.4" in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.0.4)
> Requirement already satisfied: docopt<0.7,>=0.6.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.6.2)
> Requirement already satisfied: jsonschema<3,>=2.5.1 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (2.6.0)
> Requirement already satisfied: cached-property<2,>=1.2.0 in
> /usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.5.1)
> Requirement already satisfied: docker-pycreds>=0.4.0 in
> /usr/lib/python2.7/site-packages (from
> docker<4.0,>=3.4.1->docker-compose==1.22) (0.4.0)
> Requirement already satisfied: urllib3<1.23,>=1.21.1 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (1.22)
> Requirement already satisfied: idna<2.7,>=2.5 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (2.6)
> Requirement already satisfied: chardet<3.1.0,>=3.0.2 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (3.0.4)
> Requirement already satisfied: certifi>=2017.4.17 in
> /usr/lib/python2.7/site-packages (from
> requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22)
> (2019.3.9)
> Requirement already satisfied: functools32; python_version == "2.7" in
> /usr/lib/python2.7/site-packages (from
> jsonschema<3,>=2.5.1->docker-compose==1.22) (3.2.3.post2)
> Installing collected packages: docker
> 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.
>
>
>
>
> On Tuesday, April 9, 2019 at 2:44:52 PM UTC-5, Jonathan Lozada De La Matta
> wrote:
>>
>> 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
>>>
>>> Playbook
>>> https://github.com/geerlingguy/ansible-role-awx
>>>
>>>
>>> Please remember to reply to all if there are multiple recipients.
>>>
>>> Andrew Meyer
>>> andre...@gmail.com
>>> ame...@tsg2.com
>>> 314-266-4837
>>>
>>>
>>> On Tue, Apr 9, 2019 at 2:30 PM Jonathan Lozada De La Matta <
>>> jloz...@redhat.com> wrote:
>>>
 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=environment.sh)",
> "ok: [localhost] => (item=credentia

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 in 
/usr/lib/python2.7/site-packages (1.22.0)
Requirement already satisfied: PyYAML<4,>=3.10 in 
/usr/lib64/python2.7/site-packages (from docker-compose==1.22) (3.10)
Requirement already satisfied: backports.ssl-match-hostname>=3.5; 
python_version < "3.5" in /usr/lib/python2.7/site-packages (from 
docker-compose==1.22) (3.5.0.1)
Requirement already satisfied: six<2,>=1.3.0 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.9.0)
Collecting docker<4.0,>=3.4.1 (from docker-compose==1.22)
  Using cached 
https://files.pythonhosted.org/packages/48/68/c3afca1a5aa8d2997ec3b8ee822a4d752cf85907b321f07ea86888545152/docker-3.7.2-py2.py3-none-any.whl
Requirement already satisfied: texttable<0.10,>=0.9.0 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.9.1)
Requirement already satisfied: dockerpty<0.5,>=0.4.1 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.4.1)
Requirement already satisfied: ipaddress>=1.0.16; python_version < "3.3" in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.0.16)
Requirement already satisfied: 
requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (2.18.4)
Requirement already satisfied: websocket-client<1.0,>=0.32.0 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.56.0)
Requirement already satisfied: enum34<2,>=1.0.4; python_version < "3.4" in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.0.4)
Requirement already satisfied: docopt<0.7,>=0.6.1 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (0.6.2)
Requirement already satisfied: jsonschema<3,>=2.5.1 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (2.6.0)
Requirement already satisfied: cached-property<2,>=1.2.0 in 
/usr/lib/python2.7/site-packages (from docker-compose==1.22) (1.5.1)
Requirement already satisfied: docker-pycreds>=0.4.0 in 
/usr/lib/python2.7/site-packages (from 
docker<4.0,>=3.4.1->docker-compose==1.22) (0.4.0)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in 
/usr/lib/python2.7/site-packages (from 
requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22) 
(1.22)
Requirement already satisfied: idna<2.7,>=2.5 in 
/usr/lib/python2.7/site-packages (from 
requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22) 
(2.6)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in 
/usr/lib/python2.7/site-packages (from 
requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22) 
(3.0.4)
Requirement already satisfied: certifi>=2017.4.17 in 
/usr/lib/python2.7/site-packages (from 
requests!=2.11.0,!=2.12.2,!=2.18.0,<2.19,>=2.6.1->docker-compose==1.22) 
(2019.3.9)
Requirement already satisfied: functools32; python_version == "2.7" in 
/usr/lib/python2.7/site-packages (from 
jsonschema<3,>=2.5.1->docker-compose==1.22) (3.2.3.post2)
Installing collected packages: docker
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.




On Tuesday, April 9, 2019 at 2:44:52 PM UTC-5, Jonathan Lozada De La Matta 
wrote:
>
> 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
>>
>> Playbook
>> https://github.com/geerlingguy/ansible-role-awx  
>>
>>
>> Please remember to reply to all if there are multiple recipients.
>>
>> Andrew Meyer
>> andre...@gmail.com 
>> ame...@tsg2.com 
>> 314-266-4837
>>
>>
>> On Tue, Apr 9, 2019 at 2:30 PM Jonathan Lozada De La Matta <
>> jloz...@redhat.com > wrote:
>>
>>> 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=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 

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
>
> 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 Lozada De La Matta <
> jloza...@redhat.com> wrote:
>
>> 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=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=8changed=0
>>> unreachable=0failed=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 ansible-project+unsubscr...@googlegroups.com.
>>> To post to this group, send email to ansible-project@googlegroups.com.
>>> 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.
>>>
>>
>>
>> --
>>
>> Jonathan lozada de la matta
>>
>> AUTOMATION PRACTICE
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ansible-project/5ypc54DVfMs/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKtE5iRUUJhjH8OLH%3D0vdmY55XPzfkjPvw1QVbEy1V_tA%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAEAR6cOb5iuw2Z89o2FLxgZVKKRAUdGKPRYP-dv4FiAeNRvrvA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
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 ansible-project+unsu

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 Lozada De La Matta <
jloza...@redhat.com> wrote:

> 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=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=8changed=0unreachable=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 ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> 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.
>>
>
>
> --
>
> Jonathan lozada de la matta
>
> AUTOMATION PRACTICE
>
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/5ypc54DVfMs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKtE5iRUUJhjH8OLH%3D0vdmY55XPzfkjPvw1QVbEy1V_tA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEAR6cOb5iuw2Z89o2FLxgZVKKRAUdGKPRYP-dv4FiAeNRvrvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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=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=8changed=0unreachable=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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> 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.
>


-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BKtE5iRUUJhjH8OLH%3D0vdmY55XPzfkjPvw1QVbEy1V_tA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[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-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=8changed=0unreachable=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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.