FREE Ansible MCQ Questions and Answers
An Ansible inventory file is what?
Explanation:
The list of target hosts that Ansible will manage is included in an inventory file. It is a straightforward text file that can be organized in several ways.
Describe Ansible.
Explanation:
Ansible is an open-source program that offers task automation, application deployment automation, and configuration management automation. Automating tedious operations makes IT infrastructure administration simpler.
What does the Ansible playbook serve as?
Explanation:
The configuration and deployment processes necessary to automate the process are specified in an Ansible playbook. A list of tasks that must be carried out on the target host is contained in a YAML file.
How is the target hosts' communication with Ansible handled?
Explanation:
Ansible uses SSH to communicate with the target hosts. SSH is a safe protocol that offers authentication and encryption.
What is the Ansible inventory file's default location?
Explanation:
The Ansible inventory file's default location is /etc/ansible/hosts. By altering the inventory variable in the ansible.cfg configuration file, this can be done.
An Ansible module is what?
Explanation:
Ansible modules carry out particular tasks, such as managing packages, configuring services, or copying files. Playbooks can utilize many of the built-in modules that Ansible has to offer.
Which language is used to write Ansible?
Explanation:
Python is used to create Ansible. Python is a well-liked option for automation tools since it is a high-level programming language that is simple to read and write.