# Files validation

**URL:** <https://forum.ansible.com/t/files-validation/29992>\
**Category:** Ansible Project\
**Created:** [March 26, 2019, 5:06pm UTC](https://forum.ansible.com/t/files-validation/29992 "2019-03-26T17:06:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Sivakumar](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Karthik\_Sivakumar](https://forum.ansible.com/u/Karthik_Sivakumar)\
**Post date:** [March 26, 2019, 5:06pm UTC](https://forum.ansible.com/t/files-validation/29992/1 "2019-03-26T17:06:39Z")

</div>

Hi

While executing the main.yml file , the ansible controller validate the main.yml , it checks for all files in the path , if the files is present , it runs sucessfully.  
Eventhough we are creating the file at run time our ansible playbook checks whether the file is present or not.  
How to overcome this problem. We don’t want to hardcode the file name in the playbook.  
We are using var\_files in ansible playbook section to create a file at run time.

could you please check on this issue

Thanks & Regards,  
Karthik

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [March 26, 2019, 9:18pm UTC](https://forum.ansible.com/t/files-validation/29992/2 "2019-03-26T21:18:49Z")

</div>

What does your playbook look like?

Also how is this mysterious run time creation of vars files setup?

Dick
