Zero to Hero Ansible
Go from your first ad hoc command to running Ansible on a production fleet. You will write idempotent playbooks, template configuration, build roles, keep secrets in Ansible Vault and roll out changes with zero downtime. You will finish able to debug failed runs, tune performance, run Ansible with a team through Git and CI, and decide when Ansible is the right tool.
Infrastructure
By NOOB
8 levels · 79 items · 1079 min
Syllabus
Getting started
10 items · 118 min- Lesson What Ansible is and why it exists Free 20 min
- Lab Meet the control node 10 min
- Quiz What Ansible is 6 min
- Lesson Inventories: telling Ansible about your servers 18 min
- Lab Explore the Bean & Byte inventory 10 min
- Quiz Inventories and patterns 6 min
- Lesson Ad hoc commands and modules 20 min
- Lab Your first changes with ad hoc commands 12 min
- Quiz Ad hoc commands 6 min
- Boss Getting started 10 min
Your first playbooks
10 items · 116 min- Lesson Your first playbook 20 min
- Lab Write and run site.yml 10 min
- Quiz Your first playbook 6 min
- Lesson Idempotence, check mode and diff mode 18 min
- Lab Dry runs and idempotence 10 min
- Quiz Idempotence and dry runs 6 min
- Lesson Targeting hosts and reading the PLAY RECAP 18 min
- Lab Inspect, run and read the results 10 min
- Quiz Targeting and results 6 min
- Boss Your first playbooks 12 min
Variables, facts and logic
9 items · 116 min- Lesson Variables and where they live 22 min
- Lab Variables for staging and production 12 min
- Quiz Variables and precedence 7 min
- Lesson Facts and conditionals 18 min
- Lab Decide per host with facts 12 min
- Quiz Facts and conditionals 6 min
- Lesson Loops, register and result checks 20 min
- Quiz Loops and results 7 min
- Boss Variables, facts and logic 12 min
Templates, handlers and safe changes
10 items · 125 min- Lesson Jinja2 templates 22 min
- Lab Template the nginx configuration 12 min
- Quiz Jinja2 templates 6 min
- Lesson Handlers: restart only when something changed 18 min
- Lab Restart only after a change 12 min
- Quiz Handlers 6 min
- Lesson Validation and error handling 20 min
- Lab Review the safety nets 10 min
- Quiz Validation and error handling 7 min
- Boss Templates, handlers and safe changes 12 min
Roles, collections and project layout
10 items · 118 min- Lesson Roles: packaging automation for reuse 22 min
- Lab Build the nginx and postgresql roles 10 min
- Quiz Roles 6 min
- Lesson Collections and Ansible Galaxy 18 min
- Lab Install and pin collections 10 min
- Quiz Collections 6 min
- Lesson Project layout and configuration 18 min
- Lab Lay out the Bean & Byte project 10 min
- Quiz Project layout and configuration 6 min
- Boss Roles, collections and project layout 12 min
Secrets and code quality
7 items · 89 min- Lesson Ansible Vault: secrets you can commit 22 min
- Lab Lock up the monitoring token 12 min
- Quiz Ansible Vault 7 min
- Lesson Linting and testing playbooks 20 min
- Lab Lint and fix risky.yml 10 min
- Quiz Linting and testing 6 min
- Boss Secrets and code quality 12 min
Expert: running Ansible in production
10 items · 150 min- Lesson Rolling updates with zero downtime 24 min
- Lab Roll out release 2 without downtime 15 min
- Quiz Rolling updates 7 min
- Lesson Security hardening and incident-causing mistakes 24 min
- Lab Fix and apply the security baseline 15 min
- Quiz Hardening and safe practice 7 min
- Lesson Performance and scale 22 min
- Lab Tune the control node for 300 hosts 15 min
- Quiz Performance and scale 7 min
- Boss Expert - running Ansible in production 14 min
Expert: operating Ansible as a team
13 items · 247 min- Lesson Debugging failed runs under pressure 24 min
- Lab Triage the 02:00 deploy failure 15 min
- Quiz Debugging under pressure 7 min
- Lesson Patching, upgrades and recovery 24 min
- Lab Monthly patch night 15 min
- Quiz Patching and recovery 7 min
- Lesson Ansible in a team: Git, CI and execution environments 25 min
- Lab One toolchain for the whole team 15 min
- Quiz Teams, CI and tool choice 7 min
- Lesson Capstone: automate the Bean & Byte production fleet 45 min
- Lab Capstone change window 40 min
- Quiz Capstone review 8 min
- Boss Expert - operating Ansible as a team 15 min