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…
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.
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…
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…
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…
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…
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…
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…
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 –…
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?…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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 &…
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…
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…
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….
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…
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…
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…
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…
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…
