August 2017
Intermediate to advanced
332 pages
9h 16m
English
Ansible Galaxy is to Ansible what Docker Hub is for Docker-it stores common roles, so that they can be reused by others. You can browse the available roles on the Ansible Galaxy page at: https://galaxy.ansible.com/.
To install the role from Ansible Galaxy, we can use the ansible-galaxy command.
$ ansible-galaxy install username.role_name
This command automatically downloads the role. In the case of the MySQL example, we could download the role by executing:
$ ansible-galaxy install geerlingguy.mysql
The command downloads the mysql role, which can be later used in the playbook file.
Read now
Unlock full access