yml --> yml file invocation (ansible playbook)

Team,

Requirement is ,
1)define main yaml file with - hosts: localhost (its just execution in localhost) and should contain ~10 yaml files which will perform individual activities based upon hosts {remote servers} entry
I have tried using tasks, name & other modules but not succeeded.

main.yaml file -

  • hosts: localhost
    gather_facts: no

  • name : Title of application task
    include_tasks:

  • file1.yaml

  • file2.yaml

I’m able to do with import_playbook module …