# yml --\> yml file invocation (ansible playbook)

**URL:** <https://forum.ansible.com/t/yml-yml-file-invocation-ansible-playbook/34638>\
**Category:** Ansible Developer\
**Created:** [February 18, 2021, 6:22am UTC](https://forum.ansible.com/t/yml-yml-file-invocation-ansible-playbook/34638 "2021-02-18T06:22:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heman\_Malve](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@Heman\_Malve](https://forum.ansible.com/u/Heman_Malve)\
**Post date:** [February 18, 2021, 6:22am UTC](https://forum.ansible.com/t/yml-yml-file-invocation-ansible-playbook/34638/1 "2021-02-18T06:22:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Heman\_Malve](https://avatars.discourse-cdn.com/v4/letter/h/eb8c5e/32.png) [@Heman\_Malve](https://forum.ansible.com/u/Heman_Malve)\
**Post date:** [February 18, 2021, 7:05am UTC](https://forum.ansible.com/t/yml-yml-file-invocation-ansible-playbook/34638/2 "2021-02-18T07:05:43Z")

</div>

I’m able to do with import\_playbook module …
