# Working with sudoers files

**URL:** <https://forum.ansible.com/t/working-with-sudoers-files/13401>\
**Category:** Ansible Project\
**Created:** [September 1, 2013, 4:33am UTC](https://forum.ansible.com/t/working-with-sudoers-files/13401 "2013-09-01T04:33:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![herby.gillot1](https://avatars.discourse-cdn.com/v4/letter/h/8e8cbc/32.png) [@herby.gillot1](https://forum.ansible.com/u/herby.gillot1)\
**Post date:** [September 1, 2013, 4:33am UTC](https://forum.ansible.com/t/working-with-sudoers-files/13401/1 "2013-09-01T04:33:11Z")

</div>

Hello, hope all’s well.

I’d like to know, is there a sudoers module planned, or in progress?  
Or has Ansible finalized on doing this using templates only?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [September 1, 2013, 5:34am UTC](https://forum.ansible.com/t/working-with-sudoers-files/13401/2 "2013-09-01T05:34:44Z")

</div>

I believe the best and recommended way to do sudoers is either with the template, copy, or assemble modules.

---

<div class="post-metadata">

**Author:** ![jpmens1](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jpmens1](https://forum.ansible.com/u/jpmens1)\
**Post date:** [September 1, 2013, 2:32pm UTC](https://forum.ansible.com/t/working-with-sudoers-files/13401/3 "2013-09-01T14:32:24Z")

</div>

> I believe the best and recommended way to do sudoers is either with the  
> template, copy, or assemble modules.

And make SURE to use `validate' before copy or template put the result  
in place. (Trust me -- I know what I'm talking about ... 😉

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-JP
