ERROR! the field 'hosts' is required but was not set

I am getting the “ERROR! the field ‘hosts’ is required but was not set” error, and my playbook is as follows. I am trying to run a sql script (record.sql) from the ansible control server to the DB server.

remove the - in front of tasks, it is 'starting a new play' and that
one is missing 'hosts:'

also this is more of a question for ansible-project.