December 2017
Intermediate to advanced
364 pages
7h 30m
English
To publish our own roles to Ansible Galaxy, we need to have a GitHub account, which will be used to authenticate Ansible Galaxy, and the version control repository in GitHub will be the place to store our roles.
The following steps are used to create and share a new role in Ansible Galaxy:
$ git clone https://username@github.com/username/ansible-role-docker.git docker
$ ansible-galaxy init docker --force- docker was created successfully# The structure looks like below├── defaults│ └── main.yml├── files├── handlers