In this blog you will come to know about what is Ansible, Docker and what is the need of launching a docker with ansible, in which cases you can use this tools. If you are reading this blog then you have heard this terms earlier. No problem I will discuss eveything here.

Ansible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code. It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows.

In simple terms it is a Automation tool. It is useful when you want to configure 2 or more number of systems. You think that we can also do this automation with a programming language like python, R, scala, java …etc.

But that languages should know what to do and how to do?

In ansible we only say what to do? It is declarative type of language. It doesn’t have any personal language. It uses YAML for writing the tasks.

Ansible has a feature called playbook where we can write a group of tasks and can be easily executed on the remote server or node.

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. In simple terms it is a light weight virtualization.

Docker is easy to carry and can run in different environments with out crashing the application as it contains all the dependencies.

If we want our application to run continuously in different environments we have to configure the docker. As there is also a requirement for installing and configuring the software inside the docker.

Steps involved in configuring a docker with a webserver installed in it.

  1. Configure yum
  2. Install docker with yum
  3. Pulling a docker image httpd
  4. run docker
  5. writing a webpage inside a docker

#docker #devops #ansible

Launching a Docker with Ansible
2.25 GEEK