In the previous chapter, we showed you how to create your own roles, guided by Ansible norms and best practices. There's no need to reinvent the wheel; instead, we can look for what already has been created and use it or alter it to accommodate our needs. This chapter will provide a brief introduction to Ansible Galaxy, both the command and the repository. We will learn how to upload a role that we created to the repository, search for popular community roles to download, set up, and use, and troubleshoot them as well.
This chapter covers the following topics:
- Introduction to Ansible Galaxy
- Uploading a role to Ansible Galaxy
- The best practices of searching for community roles
- Setting up and using a community role
- Troubleshooting a role