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?