Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

Test Your Ansible Knowledge: Ansible Interview Questions and Answer

  1. What is Configuration Management?
  2. List a few available configuration management tools.
  3. What is Ansible? List some of major advantages of using Ansible.
  4. Write down the data flow of Ansible.
  5. What is the major difference between scripting langugage and Ansible?
  6. What do you understand by the term IaC?
  7. What is idempotency? Is it a useful feature of Ansible?
  8. List down the most commonly used Ansible terms in Ansible ecosystem.
  9. What are the pre-requisites to install Ansible?
  10. Perform Ansible installation and configuration setup on CentOS and Debian.
  11. Execute “ansinble –version” to check installed Ansible version.
  12. What is the precedence order of Ansible to identify valid Ansible Configuration File?
  13. Perform password-based and key-based authentication setup for two different Managed Nodes.
  14. Perform a ping test on Managed Node from Ansible Controller Node to confirm Ansible Communication.
  15. What are modules? How many type of modules are three in Ansible?
  16. Execute a command to list down all of the available “Core Modules” in Ansible.
  17. Create a user named “yogesh” with uid “9876” and shell “/bin/bash” on Managed Nodes using Ad-hoc Ansible execution.
  18. Install a package named “telnet or talk or git” on Managed Nodes using Ad-hoc Ansible execution.
  19. Create a simple script to create a file and directory and execute it on Managed Nodes using Ansible Ad-hoc execution with appropriate Ansible Module.
  20. What do you understand by Privilege Escalation in Ansible?
  21. What is YAML language? What are the three simple rules to remember about YAML in Ansible?
  22. What are Playbooks? List the major portions used in any Playbook.
  23. What do you understand by Play?
  24. What are tasks?
  25. Create a Playbook to install and configure “webserver, I.e., httpd/apache”. Use Package, File, and Service Modules. Make sure to get output as “This is my First – Playbook in Ansible” on browser.
  26. Create a Playbook for “motd file” and use different variables to configure the file.
  27. What is the purpose of Debug Module in Ansible?
  28. What is the importance of Register variable in Ansible?
  29. Create another “motd file” and use different facts generated by Ansible to configure the file.
  30. Create another “motd file” and use both user-defined variables and Facts to configure the file.
  31. Create a user named “yogeshraheja” using Ansible Statements with conditions CentOS is having version 7.x and Ubuntu is having version 16.x.
  32. Create a playbook to install “mysql” server and all its dependencies like php, nginx using Ansible loops.
  33. What is the special purpose of notify in Ansible?
  34. Use the Handler section inside the Playbook create earlier in Chapter 5, Ansible Playbooks (under Tast You Knowledge section) for “webserver i.e httpd/apache” and run it after changing “file” module with “this is my First Playbook with Handler Section”.
  35. What are Ansible Roles and why are they Important?
  36. What is a command to create a base directory structure for Ansible Roles?
  37. Create an Ansible Roles for “Webserver” server using tasks, variables, facts, and handlers.
  38. How can one define dependencies in Ansible Roles?
  39. What is Ansible galaxy?
  40. Create your Ansible Galaxy Account.
  41. Login and explore Ansible Galaxy site – https://galaxy.ansible.com/
  42. Search, install, and use Ansible Role named “docker-test” from Ansible Galaxy.
  43. Create and run a Playbook with two different tasks using Copy and Fetch modules.
  44. What do you understand by fork and serial attributes in Ansible?
  45. Create and run a Playbook to ignore failed operation errors and proceed further with tasks operations.
  46. What is Ansible Tower?
  47. Perform an installation and configuration of Ansible Tower with free 10 node offerings given by RedHat.
  48. Log in and explore Ansible Tower.

Find Trusted Cardiac Hospitals

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

Explore Hospitals
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Terraform Backend Tutorial

Terraform is a popular open-source infrastructure as code tool used to create and manage infrastructure resources. The state of the infrastructure resources managed by Terraform is stored…

Read More

Best Tools for Software Composition Analysis (SCA)

Here’s a clear and professional explanation of the three related concepts you asked about — all of which are critical parts of secure software development, especially in…

Read More

Top 10 AI Code Review Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, AI code review tools have become essential for developers aiming to enhance code quality, streamline workflows, and accelerate software delivery. These tools leverage advanced…

Read More

Top 10 Expense Management Tools in 2026: Features, Pros, Cons & Comparison

Introduction Expense management tools are critical for businesses of all sizes in 2026 as they help streamline financial processes, improve budgeting, ensure compliance, and enhance financial visibility….

Read More

Top 10 Web Application Firewall (WAF) Tools in 2026: Features, Pros, Cons & Comparison

Introduction In the rapidly evolving landscape of cybersecurity, Web Application Firewalls (WAFs) have become a critical component in defending web applications from malicious attacks such as SQL…

Read More

Top 10 Endpoint Management Tools in 2026: Features, Pros, Cons & Comparison

Introduction In 2026, businesses of all sizes are increasingly reliant on a variety of devices—laptops, desktops, mobile devices, and other endpoints—that connect to their networks. With the…

Read More