jmal98 / ansiblecm

A Docker based Ansible control machine for running playbooks in a consistent environment.
Apache License 2.0
42 stars 25 forks source link

Add support for managing docker containers #8

Open lilasquared opened 5 years ago

lilasquared commented 5 years ago

Would it be possible to add the dependencies listed on this page so that this image could control docker containers? Or would it make more sense to create an image using this as the base that has these dependencies?

jmal98 commented 5 years ago

Yup, adding the dependencies to this image would be fine. Would you be able to make the changes and validate them?

lilasquared commented 5 years ago

I tried adding the docker package to the pip install step, however i am getting an error

"Failed to import docker or docker-py (Docker SDK for Python) - No module named requests.exceptions. Try pip install docker or pip install docker-py (Python 2.6)."

I assume this package is using python 2.7 from this line python2-dev=2.7.16-r1 \

Any thoughts on what I might be doing wrong?

lilasquared commented 5 years ago

@jmal98 I think I read the documentation wrong, it looks like the dependencies are required on the remote host not the control machine. If I get it working with no change to the current image version I will close this.

jmal98 commented 5 years ago

Did you get this working for your use case?