How Ansible Automates Cisco IOS and IOS XE Network Devices

Introduction Managing multiple Cisco routers and switches manually can become time-consuming as a network grows. Network engineers regularly configure interfaces, check device status, update settings, and troubleshoot…

Read More

Configuration Management in DevOps: Concepts, Tooling, and a Practical Workflow

This guide explains how configuration management works in modern DevOps teams, compares common tools, and shows a practical Ansible example. It also preserves the original SlideShare reference from the legacy post.

Read More

Ansible: All Ways to Define Variables in Ansible Inventory/Hosts

Here’s a comprehensive tutorial on all the ways to define and use variables in Ansible inventory/hosts, covering every major approach—including their best use cases and clear examples…

Read More

Ansible: Dynamic Ansible Inventory Script for AWS EC2 Public IPs

Below is a simple dynamic inventory Bash script for Ansible that queries all EC2 instances in your AWS account, gets their public IPs, and outputs a valid…

Read More

The Complete Ansible Tutorial: Concepts, Architecture, Playbooks, and Real-World Examples

Here is a comprehensive, professional-quality Ansible tutorial based on your notes, structured as a long-form guide. Every topic, term, and example is included, with deep explanations and…

Read More

Ansible Tower Workflow tutorials

Step 1 – Create a Org Step 2 – Create a 2 team i.e – dev, qa Step 3 – Add a user Step 4 – Add…

Read More

Ansible Training Flow

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Ansible Labs & Assignment & Excercise

Ansible Adhoc Commands Lab & Excercise – Part 1 Ansible Windows Adhoc Commands Lab & Excercise – Part 2 Ansible Inventory Lab & Excercise – Part 3…

Read More

Ansible Connection Options for windows remote Server

Error – Failed to connect to the host via ssh Solution – You need to set ansible_connection=winrm to connect to windows [windows] 13.233.160.153 [windows:vars] ansible_connection=winrm Error –…

Read More

Interview Questions & Answers for Ansible

Ansible Describe each of the following components in Ansible, including the relationship between them: Task Module Play Playbook Role How Ansible is different from other Automation tools?…

Read More

Ansible Variable: How to declare Variables in Ansible Inventory or hosts file?

Example Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have…

Read More

Configure Ansible for Deployment of Datadog Agent in Multiple Linux Servers

Step 1 – Install Ansible tool in your workstation Step 2 – Write a Ansible playbook Step 3 – Create a Ansible inventory file consist of Multiple…

Read More

How to exclude specific host from inventory from a playbook run in Ansible?

Suppose you want to exclude a troublesome host (bad_host) from a particular playbook run. Try using a negated ‘limit’ option: By using –limit argument with ansible-playbook command…

Read More

Ansible Inventory Lab & Excercise – Part 3

Assignment 1 You have been given a RHEL 7.X instance for ARS where access is enabled with ec2-user and key. Password login is disabled. You need to…

Read More

Ansible Interview Questions and Answer – Part 9

You can add groups inside of groups when: You add existing group names under a [groupname:children] definition (Ans) You cannot add groups within groups. You add existing…

Read More

Ansible Interview Questions and Answer – Part 8

You can merge multiple inventory files to scale out. True False (Ans) A __ module may be pulled from repository at a future time. Bronze Core Deprecated…

Read More

Ansible Interview Questions and Answer – Part 6

What is Ansible? What is Configuration Management? Is Ansible only a tool for Configuration Management? What are the components of Ansible? How Ansible works? What are the…

Read More

Ansible Interview Questions and Answer – Part 5

How can you the fact varibales in ansible? can we create an ansible module ? 83 . How can you do provisioning with ansible? 84 . BASH…

Read More

Ansible Interview Questions and Answer – Part 4

What is local action in Ansible? What are the roles in Ansible? Write a playbook for installation of apache in ubuntu and centos? How to create a…

Read More

Ansible Interview Questions and Answer – Part 2

What is the purpose and location of ansible.cfg file. Name any two settings from anible.cfg file. Please write below a sample inventory file with host, group &…

Read More

Ansible Interview Questions and Answer – Part 1

What is inventory file used for and default inventory host location? What is ansible configuration file used for and its default path? Do you write your inventory…

Read More

Ansible inventory in one remote machine using command-line

You can specify inventory file host path or comma separated host list. Except “localhost”, you can always specify a inventory using “-i INVENTORY” or –inventory=INVENTORY. Also, there…

Read More

Understanding Ansible Architecture using diagram

What is Ansible? Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices….

Read More

How to specifying multiple groups in a playbook hosts specification?

By design, Ansible executes just one play at a time. Your playbook consists of two plays (the two items in the root-level YAML list defined by the…

Read More

Login to linux ansible remote server enabled with LDAP using SSH?

Here is the scnario which we tried last week with Pranav Goel in order to login the Ansible remote server which is enlabe with LDAP and become…

Read More

Ansible Variable Lab & Excercise – Part 5

Assigment 1 – Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared in inventory. Assigment 2 – Create a playbook and setup…

Read More

How to access Ansible remote machine using SSH user and key?

How to access Ansible remote machine using SSH user and key? There are following ways, you can autheticte linux remote server using Ansible. Method 1 – Password…

Read More

Ansible execution connection type

Ansible executes playbooks in the remote server using following connection type. To change the connection type, you need to pass host-specific parameter ansible_connection=<connector>, the connection type can…

Read More