Do you have anything written in the task portion? You only showed the task line, but that is also where your head command cuts off. If you don’t have anything written after that, that is most likely your problem. If you do have something written after that, we would need to see what you have written to be able to help further.
play == mapping between hosts and tasks (only place 'hosts: ' can
appear is in a play)
role == collection of tasks/vars and other resources that can be
reused in a play
your role has a hosts: entry, which is incorrect, your play does not
have a hosts: entry ...which is also incorrect