Modern Infrastructure as Code with Ansible
summary
Ansible manages machines over agentless SSH using YAML playbooks, modules and inventories; install with pip and run with ansible-playbook -i inventory playbook.yaml. Examples include apt: name=vim state=present (idempotent), git deployment with become to a non-root app user, templated config files with backups, certbot renewal hooks, Docker image pulls and pruning, and role reuse via Ansible Galaxy. AWX (the open-source Tower) acts as a centralized controller and is reported here as stable in production for two years.
AI-written summary · about
chapters (17)
- 0:00Introduction and setup
- 1:25Learning Ansible resources
- 2:28What is Ansible and design goals
- 4:56Ansible core concepts
- 7:00Command module deep dive
- 9:08Basic Ansible playbook structure
- 11:55Idempotence and playbook execution
- 13:19Ansible variable precedence
- 14:44Ansible Galaxy and roles
- 17:14Production inventory setup
- 19:21Environment-based playbook reuse
- 20:46General Ansible advice and secrets
- 21:49Ansible Tower and AWX overview
- 23:56Python virtual environments for Ansible
- 24:57Building a deploy playbook
- 27:46Advanced Ansible use cases
- 30:12Q&A session
