What is Ansible and why choose it over older CM tools?
Ansible is an agentless automation platform that uses YAML playbooks and a centralized control node. It's often preferred over older tools because it avoids installing agents on managed nodes and uses simple, human-readable YAML instead of complex domain languages.
When should I use shell scripts, Python, or Ansible for automation?
Use shell scripts for quick, platform-specific local tasks; use Python for complex logic or API interactions; use Ansible when you need repeatable, cross-node configuration, deployment, or provisioning with minimal programming overhead.
What are the basic requirements to run Ansible?
Ansible needs Python on the control node and on managed nodes. Installation is typically via pip. On Windows, run Ansible from WSL or a Unix-like control node for best compatibility.
How does Ansible compare with Terraform?
Terraform specializes in infrastructure provisioning (infrastructure-as-code) and is better for managing cloud resources lifecycle. Ansible focuses on configuration, deployment, and can provision but may be less optimal than Terraform for pure IaC tasks.
What foundational topics will the series cover after this introduction?
The series covers passwordless authentication, inventory, ad-hoc commands, playbooks, roles (including Ansible Galaxy), variables and precedence, improving playbooks (conditionals/loops/error handling), security (Vault), policy as code, and network automation.