MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Ansible Interview Questions and Answer – Part 2

  1. What is the purpose and location of ansible.cfg file.
  2. Name any two settings from anible.cfg file.
  3. Please write below a sample inventory file with host, group & group of groups syntax in it.
  4. What is the diffrence between group_vars & host_vars directory?
  5. What are adhocs commands used for & write below syntax of a ad hocs command?
  6. Write below ad hoc command to gather fact varibales on all the hosts from the inventory file?
  7. What format does ansible ad hoc command returns the output?
  8. Name three types of modules in ansible?
  9. Name any 10 modules in ansible that you have used.
  10. How to list all the ansible core modules from command line.
  11. How to display all the options/attributes for apt module from command line.
  12. How can you check mandatory option for any module from command line?
  13. What is setup module used for?
  14. Write down sample global play declaration
  15. Write down any two tasks from playbook with its proper format and names.
  16. Whats is the diffrence between sudo and become module and its purpose.
  17. Write down playbook syntax of starting ntp service on webserver and dbservers host group at once.
  18. How to take user input from a playbook?
  19. What is debug module used for in playbooks?
  20. How to store output of any task into a varible from playbook?

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'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 at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

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