Review questions

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

  1. Are magic variables different to facts? What are they used for?
  2. Which magic variable would allow us to walk over a list of web servers and enumerate an IP address for each?
  3. Why is facts caching required? What are the different modes for caching facts?
  4. Will the inventory_hostname fact always be the same as the ansible_hostname fact?

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.