ansible-sudo-issue

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

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-flags

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.