# Ansible custom module error

**URL:** <https://forum.ansible.com/t/ansible-custom-module-error/27076>\
**Category:** Ansible Developer\
**Created:** [March 22, 2018, 12:08pm UTC](https://forum.ansible.com/t/ansible-custom-module-error/27076 "2018-03-22T12:08:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Agarwal](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Akash\_Agarwal](https://forum.ansible.com/u/Akash_Agarwal)\
**Post date:** [March 22, 2018, 12:08pm UTC](https://forum.ansible.com/t/ansible-custom-module-error/27076/1 "2018-03-22T12:08:48Z")

</div>

Hi All,

I have written a custom module touch.bash to create a file and trying to run using yaml file .

Getting this error

No such file or directory\r\n/root/.ansible/tmp/ansible-tmp…

---

<div class="post-metadata">

**Author:** ![alikins](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@alikins](https://forum.ansible.com/u/alikins)\
**Post date:** [March 22, 2018, 6:04pm UTC](https://forum.ansible.com/t/ansible-custom-module-error/27076/2 "2018-03-22T18:04:25Z")

</div>

Need to provide the contents of touch.bash and the output from the ansible

commands using the ‘-vvv’ verbosity level.

> trying to run using yaml file .

paste the command line

> I have written a custom module touch.bash to create a file

Note the builtin ‘file’ module does this, though I presume the touch.bash

is a learning exercise.
