Review questions
Do you think you've understood the chapter well enough? Try answering the following questions to test your understanding:
- Are magic variables different to facts? What are they used for?
- Which magic variable would allow us to walk over a list of web servers and enumerate an IP address for each?
- Why is facts caching required? What are the different modes for caching facts?
- Will the
inventory_hostname
fact always be the same as theansible_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.