Review questions

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

  1. Roles contain ___ and ___ subdirectories to specify variables/parameters.
  2. How do you specify a dependency on another role?
  3. When we add roles to a play, why is it not required that we use the include directives? How do the tasks, handlers, and so on, get added to the play automatically?
  4. Why do we have a separate section for handlers if they resemble regular tasks?
  5. Which module can be used to copy over static files to destination hosts?
  6. How do you specify the tasks to be run before applying a role in a playbook?

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.