noob foundry

All courses

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

Start free

Read lesson one free

Syllabus

Getting started

10 items · 118 min
  1. Lesson What Ansible is and why it exists Free 20 min
  2. Lab Meet the control node 10 min
  3. Quiz What Ansible is 6 min
  4. Lesson Inventories: telling Ansible about your servers 18 min
  5. Lab Explore the Bean & Byte inventory 10 min
  6. Quiz Inventories and patterns 6 min
  7. Lesson Ad hoc commands and modules 20 min
  8. Lab Your first changes with ad hoc commands 12 min
  9. Quiz Ad hoc commands 6 min
  10. Boss Getting started 10 min

Your first playbooks

10 items · 116 min
  1. Lesson Your first playbook 20 min
  2. Lab Write and run site.yml 10 min
  3. Quiz Your first playbook 6 min
  4. Lesson Idempotence, check mode and diff mode 18 min
  5. Lab Dry runs and idempotence 10 min
  6. Quiz Idempotence and dry runs 6 min
  7. Lesson Targeting hosts and reading the PLAY RECAP 18 min
  8. Lab Inspect, run and read the results 10 min
  9. Quiz Targeting and results 6 min
  10. Boss Your first playbooks 12 min

Variables, facts and logic

9 items · 116 min
  1. Lesson Variables and where they live 22 min
  2. Lab Variables for staging and production 12 min
  3. Quiz Variables and precedence 7 min
  4. Lesson Facts and conditionals 18 min
  5. Lab Decide per host with facts 12 min
  6. Quiz Facts and conditionals 6 min
  7. Lesson Loops, register and result checks 20 min
  8. Quiz Loops and results 7 min
  9. Boss Variables, facts and logic 12 min

Templates, handlers and safe changes

10 items · 125 min
  1. Lesson Jinja2 templates 22 min
  2. Lab Template the nginx configuration 12 min
  3. Quiz Jinja2 templates 6 min
  4. Lesson Handlers: restart only when something changed 18 min
  5. Lab Restart only after a change 12 min
  6. Quiz Handlers 6 min
  7. Lesson Validation and error handling 20 min
  8. Lab Review the safety nets 10 min
  9. Quiz Validation and error handling 7 min
  10. Boss Templates, handlers and safe changes 12 min

Roles, collections and project layout

10 items · 118 min
  1. Lesson Roles: packaging automation for reuse 22 min
  2. Lab Build the nginx and postgresql roles 10 min
  3. Quiz Roles 6 min
  4. Lesson Collections and Ansible Galaxy 18 min
  5. Lab Install and pin collections 10 min
  6. Quiz Collections 6 min
  7. Lesson Project layout and configuration 18 min
  8. Lab Lay out the Bean & Byte project 10 min
  9. Quiz Project layout and configuration 6 min
  10. Boss Roles, collections and project layout 12 min

Secrets and code quality

7 items · 89 min
  1. Lesson Ansible Vault: secrets you can commit 22 min
  2. Lab Lock up the monitoring token 12 min
  3. Quiz Ansible Vault 7 min
  4. Lesson Linting and testing playbooks 20 min
  5. Lab Lint and fix risky.yml 10 min
  6. Quiz Linting and testing 6 min
  7. Boss Secrets and code quality 12 min

Expert: running Ansible in production

10 items · 150 min
  1. Lesson Rolling updates with zero downtime 24 min
  2. Lab Roll out release 2 without downtime 15 min
  3. Quiz Rolling updates 7 min
  4. Lesson Security hardening and incident-causing mistakes 24 min
  5. Lab Fix and apply the security baseline 15 min
  6. Quiz Hardening and safe practice 7 min
  7. Lesson Performance and scale 22 min
  8. Lab Tune the control node for 300 hosts 15 min
  9. Quiz Performance and scale 7 min
  10. Boss Expert - running Ansible in production 14 min

Expert: operating Ansible as a team

13 items · 247 min
  1. Lesson Debugging failed runs under pressure 24 min
  2. Lab Triage the 02:00 deploy failure 15 min
  3. Quiz Debugging under pressure 7 min
  4. Lesson Patching, upgrades and recovery 24 min
  5. Lab Monthly patch night 15 min
  6. Quiz Patching and recovery 7 min
  7. Lesson Ansible in a team: Git, CI and execution environments 25 min
  8. Lab One toolchain for the whole team 15 min
  9. Quiz Teams, CI and tool choice 7 min
  10. Lesson Capstone: automate the Bean & Byte production fleet 45 min
  11. Lab Capstone change window 40 min
  12. Quiz Capstone review 8 min
  13. Boss Expert - operating Ansible as a team 15 min