How To Reuse Your Ansible Roles To Build Docker Images With Packer

In this article, I will show you how to reuse your Ansible roles to build Docker images using Packer.
If you are like me, you have probably used Ansible for a while. You probably have Ansible roles that you use to install and manage software on-premise and VM. Now you want to reuse those roles to build your own custom Docker images to use for development, testing, or production.

This is possible and very useful with minor changes to the Ansible roles. In fact, with Docker, you start with a very minimalistic environment and you can't take for granted some components that you will find preinstalled on major Linux distros.

Linux Machine Compromised: Power of Observation

Introduction

In debugging any issue or any dealing with any problem or circumstance, 2 things are important:

  • Observation — Observation not only at the time of issue but in general times also.
  • Combining your general observations and observations at the time of issue to conclude something.

In this blog, I will explain the following :