Review questions

Do you think you've understood the chapter well enough? Try answering the following questions to test your understanding:

  1. What is the replacement for the if else statements in Ansible?
  2. How can you selectively import platform-specific variables?
  3. Why do Jinja2 templates use __ and __ to delimit control structures?
  4. How would you skip running roles on incompatible platforms?

Get Ansible Playbook Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.