drone-ansible icon indicating copy to clipboard operation
drone-ansible copied to clipboard

Docker Connection Doesn't Work

Open kclinden opened this issue 4 years ago • 7 comments

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

kclinden avatar Jun 18 '20 20:06 kclinden

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

tboerger avatar Jun 19 '20 14:06 tboerger

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 [email protected] 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 [email protected]

kclinden avatar Jun 19 '20 15:06 kclinden

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

tboerger avatar Jun 19 '20 19:06 tboerger

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?

kclinden avatar Jun 19 '20 19:06 kclinden

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.

tboerger avatar Jun 19 '20 19:06 tboerger

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

kclinden avatar Jun 19 '20 19:06 kclinden

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

tboerger avatar Jun 19 '20 23:06 tboerger