# Template and Copy modules failing when using su

**URL:** <https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290>\
**Category:** Ansible Developer\
**Tags:** ansible-devel\
**Created:** [May 21, 2014, 11:51am UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290 "2014-05-21T11:51:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [May 21, 2014, 11:51am UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290/1 "2014-05-21T11:51:50Z")

</div>

I thought this would be the case when su got introduced, I just forgot that atomic copy had the check. You are absolutely correct, the check should be for both sudo and su, it is probably needed in more spots than just atomic move.  
​

---

<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:** [May 21, 2014, 2:08pm UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290/2 "2014-05-21T14:08:08Z")

</div>

Definitely open a github issue regarding this, so that we can keep track of it.

Thanks!

---

<div class="post-metadata">

**Author:** ![George\_Simpson1](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@George\_Simpson1](https://forum.ansible.com/u/George_Simpson1)\
**Post date:** [May 21, 2014, 4:35pm UTC](https://forum.ansible.com/t/template-and-copy-modules-failing-when-using-su/15290/3 "2014-05-21T16:35:06Z")

</div>

I will do that today, or tonight.
