Purpose of Ansible
Which of the following best describes the primary purpose of Ansible in IT environments?
- Automating system configuration and application deployment
- Designing user-friendly graphical interfaces
- Developing mobile applications
- Creating video editing tools
- Managing hardware assembly
Definition of Playbook
In Ansible, what is a playbook most commonly used for?
- Writing a set of automation tasks in YAML format
- Storing media files for projects
- Documenting troubleshooting steps
- Generating random passwords
- Developing API endpoints
Configuration Management Benefit
What is a major benefit of using configuration management tools like Ansible for managing servers?
- Ensures consistent configurations across multiple systems
- Increases manual intervention in every process
- Eliminates the need for any configuration
- Requires proprietary client software on all servers
- Limits customization on all platforms
Idempotence Concept
Which term describes the ability of Ansible tasks to produce the same result when run multiple times with the same inputs?
- Idempotence
- Impedance
- Redundancy
- Replication
- Transience
Inventory File Role
What is the main purpose of an inventory file in Ansible?
- Listing hosts and groups of hosts to manage
- Storing software installation packages
- Logging failed tasks
- Encrypting user passwords
- Managing database records
YAML Syntax for Ansible
Which format is typically used for writing Ansible playbooks, making them easy to read and write?
- YAML
- XML
- TXT
- INL
- JML
Agentless Nature
What does it mean that Ansible is 'agentless' in its operations?
- No software agents are required on target systems
- All configurations are stored in agents
- Users must manually install agents on each server
- Ansible only works with agent-specific devices
- Agent codes are written in Python
Variable Usage Example
If you want to use the value of the variable 'app_port' in an Ansible template, what is the correct syntax?
- {{ app_port }}
- [[ app_port ]]
- {{: app_port :}}
- # app_port #
- [ app_port ]
Tasks in a Playbook
In the context of a playbook, what is a 'task' in Ansible?
- An individual action to be performed on a host
- A group of servers listed in the inventory
- A special file format for logs
- A manual backup process
- A command-line argument
Common Ansible Module Function
Which task can be performed using a common Ansible module, such as 'service'?
- Restarting a web server on a remote host
- Formatting a hard disk
- Setting up a graphical user interface
- Editing video content
- Compiling source code automatically