Ansible Interview Questions
- Anupriya Dutta
- 05th May, 2021
- 1006 Followers
Latest Interview Questions
Pratice HR Questions
Ansible is an open-source automation platform or tool, used for IT tasks such as application deployment, configuration management, intraservice orchestration and provisioning. Ansible is crucial these days, with IT environments that are too complex and often need to scale too speedily for system administrators and developers to keep up if they had to do the whole thing manually. Automation simplifies complex tasks, not just making developers’ jobs more manageable but allowing them to focus attention on other tasks that add value to an organization. In other words, it frees up time and increases efficiency. And Ansible, as noted above, is rapidly rising to the top in the world of automation tools. Let’s look at some of the reasons for Ansible’s popularity.
Ansible interview questions
1) What is Ansible?
Ansible is an open-source community project which is a simple IT automation engine, developed by Red Hat Software.
2) What is Ansible tower?
Ansible Tower is a web-based solution that is designed to be the hub for all automation tasks such that it makes Ansible even easier to use for IT teams of all kinds.
3) Enlist some advantages of using Ansible?
Some of the advantages of using Ansible are:
- Ansible is free of cost
- Very simple to set up and use
- Ansible is Flexible
- Ansible is Efficient
- Ansible lets you model even highly complex IT workflows
- You don’t need to install any other software or firewall ports
4) What is Ansible role?
Ansible roles are defined using YAML files. IT is basically a set of tasks used to configure a host to serve a certain purpose like configuring a service.
5) What is cowsay in ansible?
In Ansible, cowsay is a program that is used to generate the ASCII pictures of a cow following with a message.
6) What is an Ansible Playbook?
An Ansible playbook is a blueprint of automation tasks that are executed on a set, group, or classification of hosts. These tasks are complex IT actions executed with limited or no human involvement.
7) What are ad-hoc commands?
Ad hoc commands are commands that allow executing simple tasks at the command line against one or all of the hostswhich. It can run individually in order to perform quick functions.
8) What is Ansible Galaxy?
An Ansible Galaxy is a repository for Ansible Roles such that it can be dropped directly into the Playbooks to streamline the automation projects.
9) What are Ansible Modules?
Ansible modules are discrete units of code or the scripts that can be used inside the command line or in an Ansible playbook.
10) What is Ansible Task?
An Ansible task is the complex IT actions that can be executed with limited or no human involvement.
11) What are Ansible Vaults?
An Ansible Vault is an inbuilt feature of ansible where you can store your sensitive data such as passwords or keys in encrypted files, rather than as plaintext in playbooks or roles.
12) What is CD/CI in Ansible?
In CI/CD process Ansible is used to provision the target environment and then deploy the application on it.
13) What is Idempotency?
Idempotency states that Ansible tasks will only change the system if there is something to do.
14) List components of Ansible Automation Engine?
The components of Ansible Automation Engine are: