drone-plugins / drone-ansible

Drone plugin to provision via Ansible
http://plugins.drone.io/drone-plugins/drone-ansible
Apache License 2.0
30 stars 41 forks source link

Docker Connection Doesn't Work #34

Open kclinden opened 4 years ago

kclinden commented 4 years ago

Unable to use a docker connection for the Ansible Plugin. https://discourse.drone.io/t/ansible-plugin-docker-connection-to-service-container/7528

tboerger commented 4 years ago

I never use any docker connection type, I don't know what needs to be installed for that.

kclinden commented 4 years ago

docker-cli is what would be needed I think. I have it clone and am trying to get it work. I would also need a volume for "/var/run/docker.sock" I believe.

On Fri, Jun 19, 2020 at 9:08 AM Thomas Boerger notifications@github.com wrote:

I never use any docker connection type, I don't know what needs to be installed for that.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/drone-plugins/drone-ansible/issues/34#issuecomment-646656564, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABY5MPFMVJX4RK5D3GHOQSLRXNWOVANCNFSM4OCDYVRA .

-- v/r Kasey Linden kaseylinden@gmail.com

tboerger commented 4 years ago

I'm not sure if that could properly work at all

kclinden commented 4 years ago

I am trying to have a pipeline that runs/tests my ansible playbook by running it against a system. Right now I was thinking that system could be a docker container that is provisioned as a service. Do you have a better idea on how I could do this?

tboerger commented 4 years ago

So far I have done all testing with molecule, mostly to cloud providers supported by it via drone.

Another option could be a special runner, but that would be a bigger effort.

I never tried to do the testing with the ansible plugin itself.

kclinden commented 4 years ago

How about using kitchen to provision a system and invoke ansible? Have you worked with drone and kitchen?

tboerger commented 4 years ago

No kitchen, just Molecule similar to https://github.com/rolehippie/sudo