Ansible Flashcards

๐Ÿ› ๏ธ Ansible Flashcards
๐Ÿค– What is Ansible?
Ansible is an open-source automation tool for configuration management, app deployment, and orchestration.

๐Ÿ“„ What is a Playbook?
A playbook is a YAML file that defines tasks to be executed on hosts in a structured format.

๐Ÿ“ฆ What are Modules?
Modules are discrete units of code in Ansible used to perform specific tasks like installing packages or managing files.

๐Ÿงฉ What are Roles?
Roles are a way to group tasks, variables, handlers, and templates into reusable components.

๐Ÿ”— What is an Inventory?
An inventory is a file listing the hosts and groups of hosts that Ansible manages.

๐Ÿ” What is Ansible Vault?
Ansible Vault allows you to encrypt sensitive information such as passwords or keys in your playbooks.

๐Ÿง  What is Idempotency?
Idempotency means running a task multiple times will not change the system beyond the initial application.

๐Ÿงช How does Ansible test changes?
You can use the `–check` flag for dry runs to simulate playbook execution without making actual changes.

๐Ÿ”„ What are Handlers?
Handlers are special tasks that run only when notified by other tasks (e.g., restarting a service).

๐ŸŒ How does Ansible connect to remote hosts?
Ansible uses SSH for communication with remote Linux/Unix systems and WinRM for Windows systems.

๐Ÿงฌ What are Variables in Ansible?
Variables are used to customize tasks and are defined in playbooks, inventories, or external files.

โšก What are Collections?
Collections are a distribution format for Ansible content like roles, playbooks, and plugins, enabling sharing and reuse.