# Getting a sudo illegal option error

**URL:** <https://forum.ansible.com/t/getting-a-sudo-illegal-option-error/27022>\
**Category:** Ansible Project\
**Created:** [March 17, 2018, 12:45pm UTC](https://forum.ansible.com/t/getting-a-sudo-illegal-option-error/27022 "2018-03-17T12:45:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahendra\_Raghuwanshi](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mahendra\_Raghuwanshi](https://forum.ansible.com/u/Mahendra_Raghuwanshi)\
**Post date:** [March 17, 2018, 12:45pm UTC](https://forum.ansible.com/t/getting-a-sudo-illegal-option-error/27022/1 "2018-03-17T12:45:46Z")

</div>

Hello

I am getting below error::

fatal: [10.237.92.134]: FAILED! =\> {“changed”: false, “module\_stderr”: “Shared connection to 10.237.92.134 closed.\r\n”, “module\_stdout”: “sudo: illegal option `-n’\r\nusage: sudo -K | -L | -V | -h | -k | -l | -v\r\nusage: sudo [-HPSb] [-p prompt] [-u username|#uid]\r\n { -e file […] | -i | -s | }\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1}

Kindly help me figure this out.

With Regards

Mahendra Raghwuanshi
