Ansible Interview Questions and Answers
Related differences
Ques 1. What is Ansible?
Ansible is an open-source automation tool used for configuration management, application deployment, task automation, and orchestration.
Ques 2. Explain the difference between Ansible and other configuration management tools.
Ansible is agentless, uses simple YAML syntax, and doesn't require a master-server setup. Other tools like Puppet and Chef rely on agents and a master-server architecture.
Ques 3. What is an Ansible Playbook?
An Ansible Playbook is a YAML file that defines a set of tasks to be executed on remote hosts. Playbooks are used for automation and orchestration.
Ques 4. Explain the role of an Ansible Handler.
An Ansible Handler is a special task triggered only if another task changes a system state. Handlers are used to restart services or perform similar actions after a change.
Ques 5. How can you define variables in Ansible?
Variables in Ansible can be defined in playbooks, inventory files, or external variable files. They are used to make playbooks more dynamic.
Most helpful rated by users: