# module failure even for low privileges  command

**URL:** <https://forum.ansible.com/t/module-failure-even-for-low-privileges-command/25127>\
**Category:** Ansible Project\
**Created:** [July 29, 2017, 7:06pm UTC](https://forum.ansible.com/t/module-failure-even-for-low-privileges-command/25127 "2017-07-29T19:06:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Modak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sameer_modak/32/5180_2.png) [@Sameer\_Modak](https://forum.ansible.com/u/Sameer_Modak)\
**Post date:** [July 29, 2017, 7:06pm UTC](https://forum.ansible.com/t/module-failure-even-for-low-privileges-command/25127/1 "2017-07-29T19:06:18Z")

</div>

Here is the case, I want run this command on all servers, out of it one server does not have current user{smodak} in sudoers file. Due to switch it asks both the passwords

one for ssh and another for sudo. For all remaining server s where sudo is required and rightly provided it works fine but for 1st server where user is not in sudoers file  
it gives module error. Why cant ansible run this command which does not require sudo user on 1st server where it is actually not present. We can understand if command requries any high privilege then module failure is accepted but for low privilege it should work as we already providing ssh password.  
[smodak@hel-shell-2 ~]$ ansible all -b -K -m shell -a “/bin/date”

SSH password:  
SUDO password[defaults to SSH password]:  
NESBWDA01 | FAILED | rc=0 \>\>  
MODULE FAILURE

NESECDA01 | SUCCESS | rc=0 \>\>  
Sat Jul 29 21:57:51 EEST 2017

NESGRDDB01 | SUCCESS | rc=0 \>\>  
Sat Jul 29 21:57:51 EEST 2017

---

<div class="post-metadata">

**Author:** ![Daniel\_JD](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@Daniel\_JD](https://forum.ansible.com/u/Daniel_JD)\
**Post date:** [July 29, 2017, 9:09pm UTC](https://forum.ansible.com/t/module-failure-even-for-low-privileges-command/25127/2 "2017-07-29T21:09:35Z")

</div>

Please run it with the verbose flags(-vvvv) and check the result.

If you use -b sudo (or the method you specified in the config) will be used for all servers. Ansible doesnt check if its actually needed.
