# Enable Passwordless Sudo w/out template

**URL:** <https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204>\
**Category:** Ansible Developer\
**Created:** [January 13, 2016, 6:20pm UTC](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204 "2016-01-13T18:20:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin\_Byrne](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@Colin\_Byrne](https://forum.ansible.com/u/Colin_Byrne)\
**Post date:** [January 13, 2016, 6:20pm UTC](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204/1 "2016-01-13T18:20:02Z")

</div>

So I came across the issue of trying to enable passwordless sudo for a group, but didn’t find any particularly simple (I was looking for a one-task solution) solution. I did solve my issue short term with a template, but my question is now:

Would you guys see the benefit of an encompassing sudoers module that would edit the existing sudoers file? I have begun to build one that is similar the ini\_file module (enumerates and searches for lines), but I probably wont finish it unless I think it would benefit others

Thanks for any feedback, Colin

---

<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 13, 2016, 10:40pm UTC](https://forum.ansible.com/t/enable-passwordless-sudo-w-out-template/20204/2 "2016-01-13T22:40:06Z")

</div>

I prefer not to have 'per conf file modules' and either use template  
or replace modules as needed.
