# Is there any config to define the windows remote\_tmp directory in ansible.cfg file?

**URL:** <https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [January 12, 2016, 8:43pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185 "2016-01-12T20:43:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robin\_Rocky](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Robin\_Rocky](https://forum.ansible.com/u/Robin_Rocky)\
**Post date:** [January 12, 2016, 8:43pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185/1 "2016-01-12T20:43:30Z")

</div>

Hi All,

I have a question regarding the ansible.cfg file entry for remote\_tmp

Is there any config to define the windows remote\_tmp directory in ansible.cfg file?

thanks  
Robin

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 14, 2016, 5:31pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185/2 "2016-01-14T17:31:43Z")

</div>

no, currently only remote\_tmp exists, which is ignored by the winrm  
module afaik.

But this does seem like a feature we should push to the hosts vs just  
ansible.cfg. (ansible\_tmp\_dir?)

---

<div class="post-metadata">

**Author:** ![Robin\_Rocky](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@Robin\_Rocky](https://forum.ansible.com/u/Robin_Rocky)\
**Post date:** [January 14, 2016, 5:50pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185/3 "2016-01-14T17:50:56Z")

</div>

Thanks Brian. Let me check that option.

Also is there any functionality in ansible to auto archive/rotate log\_path file in ansible.cfg

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [January 14, 2016, 5:54pm UTC](https://forum.ansible.com/t/is-there-any-config-to-define-the-windows-remote-tmp-directory-in-ansible-cfg-file/20185/4 "2016-01-14T17:54:48Z")

</div>

no, but ansible logs to syslog also or you can use a callback to do  
the logging you want.

other than that their are plenty of programs that do log rotation.
