Searching

You can use the ansible-galaxy command to search for roles. For example, running the following currently returns 725 roles:

$ ansible-galaxy search docker

If you want to search for a role by an author, you can use the following:

$ ansible-galaxy search --author=russmckendrick docker

As you can see from the output in the screenshot, this returns just the role we have published:

This is useful as you do not have to start switching between your terminal and browser.

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.