

To figure out these, let’s run below ansible-galaxy command, ~]# ansible-galaxy info bennojoy.ntp

Also, what is the license status of this role. Let’s try bennojoy.ntp for this example, but before using this we need to figure out couple of things, is this role compatible with the version of ansible I am running. With that out of the way, lets continue with our job of installing a NTP role for our Linux machines. So, if you have written an NTP role and have published it to galaxy repo, it does not get mixed up with someone else repo with the same name. The name of a role is always preceded by the author name so that it is easy to segregate roles with the same name. But before that let me tell you the naming convention being followed here. It found 341 matches based on our search, as you can see from the output above many of these roles are not even related to NTP which means our search needs some refinement however, it has managed to pull some NTP roles, lets dig deeper to see what these roles are. Here is the truncated output of the command above. To keep moving with the NTP idea, here is how you can search and install an NTP role from galaxy.įirstly, lets run ansible-galaxy with the help flag to check what options does it give us ~]# ansible-galaxy -helpĪs you can see from the output above there are some interesting options been shown, since we are looking for a role to manage ntp clients lets try the search option to see how good it is finding what we are looking for. Each role published on galaxy repository is thoroughly tested and has been rated by the users, so you get an idea on how other people who have used it liked it. You can visit to get an idea on domains and popular roles it has.

Ansible galaxy has roles for almost all the domains and these caters different problems. Let’s take an example, you wish to manage NTP clients on the Linux machines, you have 2 choices either write a role which can be applied to the nodes or use ansible-galaxy to download an existing role someone has already written/tested for you. To see how you can install Ansible click here.Īnsible core modules will let you manage almost anything should you wish to write playbooks, however often there is someone who has already written a role for a problem you are trying to solve. If you have worked with python or have experience with yaml, you will feel at home with Ansible. What makes Ansible popular is its agent less feature and granular control. Ansible is tool of choice these days if you must manage multiple devices, be it Linux, Windows, Mac, Network Devices, VMware and lot more.
