# Using ansible api,tmp files still being

**URL:** <https://forum.ansible.com/t/using-ansible-api-tmp-files-still-being/22748>\
**Category:** Ansible Developer\
**Tags:** ubuntu\
**Created:** [October 8, 2016, 5:42am UTC](https://forum.ansible.com/t/using-ansible-api-tmp-files-still-being/22748 "2016-10-08T05:42:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harold\_T](https://avatars.discourse-cdn.com/v4/letter/h/b5e925/32.png) [@harold\_T](https://forum.ansible.com/u/harold_T)\
**Post date:** [October 8, 2016, 5:42am UTC](https://forum.ansible.com/t/using-ansible-api-tmp-files-still-being/22748/1 "2016-10-08T05:42:22Z")

</div>

my env is Ubuntu 13.1，ansible 2.1

I am using the official example to learn ansible api,

$ cat official.py  
[https://github.com/haroldTlan/ansible/blob/master/official.py](https://github.com/haroldTlan/ansible/blob/master/official.py)

but tmp file still there

$ cd /.ansible/tmp  
$ ls

ansible-local-65005zhPKlI ansible-local-70192KRXI4M  
…

what should I do?
