# Include unexisting files

**URL:** <https://forum.ansible.com/t/include-unexisting-files/19466>\
**Category:** Ansible Project\
**Created:** [October 8, 2015, 4:19pm UTC](https://forum.ansible.com/t/include-unexisting-files/19466 "2015-10-08T16:19:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcodix](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dcodix](https://forum.ansible.com/u/dcodix)\
**Post date:** [October 8, 2015, 4:19pm UTC](https://forum.ansible.com/t/include-unexisting-files/19466/1 "2015-10-08T16:19:16Z")

</div>

Hi,

Does someone know if and how to include plays that does not exist at the execution time?  
For example.  
**main.yml**

`

- include: download.yml

- include: /this/file/does/not/exist/yet/configure.yml  
`

I would like to download some files. After _download.yml_ finishes the file “_/this/file/does/not/exist/yet/configure.yml_” will exist, but not before. I would like to include the _configure.yml_ file which will be an ansible playbook.

Is it possible?

---

<div class="post-metadata">

**Author:** ![David\_Karban](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@David\_Karban](https://forum.ansible.com/u/David_Karban)\
**Post date:** [October 8, 2015, 4:34pm UTC](https://forum.ansible.com/t/include-unexisting-files/19466/2 "2015-10-08T16:34:13Z")

</div>

Hi,

not possible on 1.9. version, do not know, if on 2.0.

---

<div class="post-metadata">

**Author:** ![dcodix](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dcodix](https://forum.ansible.com/u/dcodix)\
**Post date:** [October 9, 2015, 7:46am UTC](https://forum.ansible.com/t/include-unexisting-files/19466/3 "2015-10-09T07:46:42Z")

</div>

Thanks David.  
I think it would be a nice feature.  
Right now I suppose that I could just run ansible-playbook from within the ansible playbook which would run the “_/this/file/does/not/exist/yet/configure.yml_” playbook. It should work, shouldn’t it? But it even sound so awfull ! 😉

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [October 9, 2015, 6:33pm UTC](https://forum.ansible.com/t/include-unexisting-files/19466/4 "2015-10-09T18:33:08Z")

</div>

Correct, this is not possible with playbook-level includes, however you could do it with task-level includes in 2.0.
