DevOps

Ansible & Configuration Management

Playbooks, inventory, modules, roles, handlers, idempotence, provisioning vs configuration, immutable infrastructure

20 perguntas de entrevista·
Mid-Level
1

What is an Ansible playbook?

Resposta

A playbook is a YAML file that defines a series of tasks to execute on target hosts. It constitutes the basic unit for orchestrating configurations in Ansible. Playbooks allow describing the desired state of systems declaratively, facilitating repeatable automation and large-scale configuration management.

2

What is the role of an inventory file in Ansible?

Resposta

The inventory file lists all hosts on which Ansible can execute tasks. It can be in INI or YAML format and allows grouping hosts by logical categories. The inventory can also define host-specific or group-specific variables, facilitating differentiated configuration management based on environments or server roles.

3

What does a module represent in Ansible?

Resposta

A module is a reusable code unit that performs a specific action on a target system. Ansible provides hundreds of built-in modules for managing packages, files, services, users, and much more. Modules are idempotent by design, meaning they can be executed multiple times without changing the final result if the desired state is already achieved.

4

How does Ansible connect to target hosts by default?

5

What does the principle of idempotence mean in Ansible?

+17 perguntas de entrevista

Domine DevOps para sua proxima entrevista

Acesse todas as perguntas, flashcards, testes tecnicos, exercicios de code review e simuladores de entrevista.

Comece gratis