Review questions

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

  1. How do you specify multiple host inventories for the same environment?
  2. If you define a variable in the environments/dev/group_vars/all file and the same in the group_vars/all file, which one will take precedence?
  3. How do you create a group of groups in a host inventory file?

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.