Getting Started With Ansible

Getting Started With Ansible

A basic Ansible command or playbook: selects machines to execute against from inventory. connects to those machines (or network devices, or other managed ... Let's learn basics of Ansible along with one practical — docker environment provisioning using Ansible.

This article will help you to understand the basics of Most demanding Automation Tool — “Ansible”, along with setting up the environment to work on Ansible. *Also I will show one practical where we gonna *setup Docker environment and also we will configure *webserver on Docker Container only by using Ansible. *So, Let's jump in…

What is Ansible :

  • *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.
  • Ansible was written by Michael DeHaan and acquired by Red Hat in 2015. *It includes its own declarative language to describe system configuration. *Ansible is agentless, temporarily connecting remotely via SSH or Windows Remote Management to do its tasks.
  • _To know more about Ansible : _https://www.ansible.com/overview/it-automation

Installation of Ansible on RHEL8 :

Frankly speaking I don't want to waste your time by telling more about what is Ansible. Rather than learning theory, let's jump into some practical and you will automatically see the power of Ansible. Now we gonna Install and Setup Ansible on our local machine…

Pre-requisite :

  • Here I am using RedHat Enterprise Linux (version 8) or RHEL8. My base OS is Windows 10 and on top of Windows I installed Oracle VirtualBox *where I am running my *RHEL8 VMTo do this practical we need two VMs.
  • Next you definitely need *basic knowledge of Linux *and how to work on Linux Terminal. Lastly your *both VMs should connected via bridge adaptor *because I want to do networking between both VMs and also I want both VM to reach to Internet.

Basic Architecture of Distributed Ansible Cluster :

  • Before installing software we need to understand why and how we use Ansible.
  • Normally in industry we have thousands of servers and manually configuring those servers is a very haptic and time consuming task.
  • Here the play of Ansible come. We can configure any kind of server using Ansible in just a few minutes and also We can configure thousands of servers in parallel using Ansible.

linux devops basics automation ansible

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

DevOps Automation: How to Apply Automation Into Your Software Delivery Process

DevOps automation tools help increase your application development agility and speed up delivery for software changes.

DevOps Basics: What You Should Know

What is DevOps? What are the goals it helps achieves? What are its benefits? This article has answers!

Linux commands for DevOps | Linux for DevOps | DevOps Training

This Edureka video on "Linux commands for DevOps " will talk about Understand what is Linux and why is it preferred? Also, learn about Linux commands in DevOps and shell scripting basics.

How to Extend your DevOps Strategy For Success in the Cloud?

DevOps and Cloud computing are joined at the hip, now that fact is well appreciated by the organizations that engaged in SaaS cloud and developed applications in the Cloud. During the COVID crisis period, most of the organizations have started using cloud computing services and implementing a cloud-first strategy to establish their remote operations. Similarly, the extended DevOps strategy will make the development process more agile with automated test cases.

DevOps Infrastructure Automation using Ansible | DevOps Tutorial

This Edureka "DevOps Infrastructure Automation" session takes you through the basic approach automating DevOps Infrastructure. It revolves around reasoning for the need of infrastructure automation and discussing the tools that make it happen. This tutorial also comprises of a hands-on session using ansible where learners understand how to deploy NTP servers on remote nodes using an Ansible Playbook.