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.