Common

In the previous section of this chapter, we used the ansible-galaxy init command to create the common role. This creates several folders and files; before we start editing them, let's quickly discuss what each of them is used for:

It is really only the top level we are worried about; the main.yml files are just the default YAML files that are called for each part of the role:

  • README.md: This is the file used to create any documentation about the role when the role is checked into a service such as GitHub. This file will be displayed along with the folder listing whenever someone browses to the common folder.
  • default: This is where ...

Get Learn Ansible 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.