How to develop your ansible code easily with docker ?

Xavier Pestel (Xavki)
1 min readDec 28, 2020

--

If you use ansible, maybe you want to test your code as much as possible. Usually, I use some virtual machines to do that. Sometimes i use vagrant with virtualbox or other times KVM. But using is not the more efficient solution to test your code. Because, virtual servers take some times to be up and ready and with ansible it’s useful to drop and recreate servers.

Crédits : https://wallhaven.cc/w/nkzy56

To change that, I decide to use containers. This solution is very lighter and a container can be up in few seconds or less. I created a dockerfile which provides for the installation of ssh and systemd into a debian container. And when you want you can quickly and easily recreate many containers.

You can find the code in this repositories.

And if you want to see an explaination you can see this video where I explain it.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Xavier Pestel (Xavki)
Xavier Pestel (Xavki)

Written by Xavier Pestel (Xavki)

Microservices architecture and opensource. I’m maintainer of xavki https://youtube.com/c/xavki-linux about opensource. My blog : https://xavki.blog/

No responses yet

Write a response