# ansible-sudo-issue

**URL:** <https://forum.ansible.com/t/ansible-sudo-issue/28899>\
**Category:** Ansible Project\
**Created:** [October 30, 2018, 3:28pm UTC](https://forum.ansible.com/t/ansible-sudo-issue/28899 "2018-10-30T15:28:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bairava\_Surya](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@Bairava\_Surya](https://forum.ansible.com/u/Bairava_Surya)\
**Post date:** [October 30, 2018, 3:28pm UTC](https://forum.ansible.com/t/ansible-sudo-issue/28899/1 "2018-10-30T15:28:36Z")

</div>

Hi Team,

we need to sudo to solaris box using ansible.  
Below steps are done manually to login as sudo via putty  
SSH into solaris box by entering username and password  
sudo to server by entering username and password as it prompt for password.

Using ansible am able to ssh to the server but second step am unable to achieve via ansible  
i studied become module and implemeted getting time out exception as my sudo is implemeted in interactive manner.can any one guide me on this as am struck on this from many months.

Regards  
B Surya

---

<div class="post-metadata">

**Author:** ![Mike\_Klebolt](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike\_Klebolt](https://forum.ansible.com/u/Mike_Klebolt)\
**Post date:** [October 30, 2018, 8:26pm UTC](https://forum.ansible.com/t/ansible-sudo-issue/28899/2 "2018-10-30T20:26:42Z")

</div>

You may want to check out these two config options:

[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html?highlight=ansible\_become\_exe#default-become-exe](https://docs.ansible.com/ansible/latest/reference_appendices/config.html?highlight=ansible_become_exe#default-become-exe)  
[https://docs.ansible.com/ansible/latest/reference\_appendices/config.html?highlight=ansible\_become\_exe#default-become-flags](https://docs.ansible.com/ansible/latest/reference_appendices/config.html?highlight=ansible_become_exe#default-become-flags)

---

<div class="post-metadata">

**Author:** ![Bairava\_Surya](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@Bairava\_Surya](https://forum.ansible.com/u/Bairava_Surya)\
**Post date:** [November 1, 2018, 5:05am UTC](https://forum.ansible.com/t/ansible-sudo-issue/28899/3 "2018-11-01T05:05:43Z")

</div>

hi all,

if my sudo is implemeted in interactive way how we can sudo to servers using become module.its does not work as expected and it throws time out exception.
