Creating the docker role

To start off with, we need the basic files; to get these, run the following command where you normally store your code:

$ ansible-galaxy init ansible-role-docker

This will give us the directory and file structure we need for our new role; we can now make a start on creating the role.

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.