DevOps

Ansible & Configuration Management

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

20 pytań z rozmów·
Mid-Level
1

What is an Ansible playbook?

Odpowiedź

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?

Odpowiedź

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?

Odpowiedź

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 pytań z rozmów

Opanuj DevOps na następną rozmowę

Uzyskaj dostęp do wszystkich pytań, flashcards, testów technicznych, ćwiczeń code review i symulatorów rozmów.

Zacznij za darmo