Here is a very basic example that runs ansible-galaxy install:
- name: install roles
command: ansible-galaxy install {{ item.item }}
with_items:
- "{{ ansible_roles_list }}"
or
Use the ansible-galaxy command to download roles from the Galaxy website
$ ansible-galaxy install username.role_name