Ansible - do you have to include/import from other files?

No, this is not possible. You need to move your task to an external file.