# adding creates= and removes= on script:

**URL:** <https://forum.ansible.com/t/adding-creates-and-removes-on-script/13952>\
**Category:** Ansible Developer\
**Created:** [November 21, 2013, 8:34am UTC](https://forum.ansible.com/t/adding-creates-and-removes-on-script/13952 "2013-11-21T08:34:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerome\_Wagner](https://avatars.discourse-cdn.com/v4/letter/j/76d3ee/32.png) [@Jerome\_Wagner](https://forum.ansible.com/u/Jerome_Wagner)\
**Post date:** [November 21, 2013, 8:34am UTC](https://forum.ansible.com/t/adding-creates-and-removes-on-script/13952/1 "2013-11-21T08:34:45Z")

</div>

migrating this thread from ansible project  
[https://groups.google.com/forum/#!topic/ansible-project/R4qQQZmErXA](https://groups.google.com/forum/#!topic/ansible-project/R4qQQZmErXA)

Michael said:  
The “file exists” stuff should be handled by “execute module” rather than calling low level shell ops and defining “remote path exists”, just call the stat module.

OK. I initially did the low level stuff because I thought you wanted script: to fully run without invoking python modules.

I modified the patch now using \_execute\_module stat :  
[https://github.com/ansible/ansible/pull/4986](https://github.com/ansible/ansible/pull/4986)

Jerome

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [November 23, 2013, 4:14pm UTC](https://forum.ansible.com/t/adding-creates-and-removes-on-script/13952/2 "2013-11-23T16:14:21Z")

</div>

Thanks, in queue for review and things!

Much appreciated.
