Ansible for Network Engineers · Ansible 3

Loops, conditions, registered results and checks

Real playbooks repeat work over lists, skip devices that should not change, read what a device said and decide from it. Roll out VLANs with loops, limit a change with when, capture show output with register, and turn a playbook into a pre-change check with assert.

49 min read9 chapters2 labs15 quiz7 scenarios15 interview Q&A

This module is part of the paid plans

The free Starter plan opens the first module of every path. Upgrade to unlock this module's lesson, labs, quiz and scenarios.

Your free Starter plan includes

  • ✓First module of every path — lessons and quizzes
  • ✓3 hands-on labs in total
  • ✓Practice questions (up to 10 per set)
  • ✓Build your own lab — 3 sessions a month, up to 4 devices

Inside this module

  • Lab 1 · Roll out VLANs with loops, conditions and a post-check
  • Lab 2 · Ticket: the pre-change check is red
🎓 For educational purposes only — all devices are simulationsTerms of UsePrivacy Policy© 2026 Network Kings
CONFIG by Network Kings — an educational IT simulation platform for learning purposes only. It is not Cisco IOS, Junos, FortiOS or PAN-OS and contains no Cisco, Juniper, Fortinet or Palo Alto Networks software. Cisco, IOS, CCNA, CCNP, Juniper, JNCIA, JNCIS, JNCIP, Fortinet, FortiGate, FortiOS, NSE, Palo Alto Networks, PAN-OS and PCNSE are trademarks of their respective owners. Network Kings is not affiliated with or endorsed by Cisco Systems, Inc., Juniper Networks, Inc., Fortinet, Inc. or Palo Alto Networks, Inc.