Now we know how easy it is to download a role, let's look at how we can contribute back to the community by creating a role. In the last few chapters, we have been using Ansible to install Docker. So let's use that as our base and extend the role to support Ubuntu and have it install the Docker CE Edge release rather than the stable one.
Publishing a role
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.