Ansible Galaxy (https://galaxy.ansible.com/) is essentially a large public repository for sharing and downloading community developed ansible roles. Roles ship with readmes detailing role use and available variables. Galaxy contains a large number of roles that are constantly evolving and increasing. Galaxy can use git allowing for other role sources such as GitHub. The ansible-galaxy utility is used to create and remove roles or install roles from Ansible Galaxy or a Git-based SCM
Syntax:
ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [–help] [options] …
Commands
- Create initial role with directory structure: ansible-galaxy init role_name
- Search for available Galaxy Roles: ansible-galaxy search keyword –author authorname
- Install a role (from galaxy): ansible-galaxy install role_name
- Install a role (from file): ansible-galaxy install -r file.yml
- List Installed Roles: ansible-galaxy list
- Print info about Role: ansible-galaxy info role_name
- Remove a Role: ansible-galaxy remove role_name