Different hosts inside a role (is it doable, or am i thibking it wrong ?)

Hi guys, im having a role defined like this on my main playbook.yml, this role runs on the galera hosts :

  • hosts: galera
    gather_facts: True
    roles:
  • { role: galera, tags: [‘galera’] }

The main.yml in the tasks directory of the role goes like this:

plays map hosts to tasks, not roles, you need another play.

got it.
thanks Brian