Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Ansible Interview Questions and Answers

Related differences

Ansible vs TerraformAnsible vs Puppet

Ques 21. How can you create custom Ansible modules?

Custom Ansible modules can be created using Python. They should follow the Ansible module development guidelines and use the 'ansible.module_utils' library.

Is it helpful? Add Comment View Comments
 

Ques 22. Explain the purpose of Ansible Tower.

Ansible Tower is a web-based UI and API for managing Ansible. It provides a dashboard, role-based access control, job scheduling, and other features.

Is it helpful? Add Comment View Comments
 

Ques 23. How can you include external files in Ansible playbooks?

The 'include' statement is used to include external YAML files in Ansible playbooks. It allows for better organization and reuse of playbook components.

Example:

include: tasks/common-tasks.yml

Is it helpful? Add Comment View Comments
 

Ques 24. Explain the purpose of Ansible Facts caching.

Ansible Facts caching is the process of storing facts about remote systems locally to improve performance. It reduces the need to gather facts on each playbook run.

Is it helpful? Add Comment View Comments
 

Ques 25. How can you define and use roles in Ansible playbooks?

Roles are defined in separate directories and can be included in playbooks using the 'roles' keyword. They enhance playbook organization and reusability.

Example:

roles:
  - common
  - web_server

Is it helpful? Add Comment View Comments
 

Most helpful rated by users:

©2026 WithoutBook