Adding more logs to understand the issue.

<server> ESTABLISH SSH CONNECTION FOR USER: xxxx
<server> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o 
ControlPersist=60s -o StrictHostKeyChecking=no -o U
ser=xxxx -o ConnectTimeout=10 -o 
ControlPath=/home/vagrant/.ansible/cp/305901ab16 nj12mhf5685 '/bin/sh -c '
"'"'chmod a+rx /var/tmp/ansible-tmp-1540918785.12-245644937797326/ 
/var/tmp/ansible-tmp-1540918785.12-245644937797326/se
tup.py && sleep 0'"'"''
<server> (0, '', '')
<server> ESTABLISH SSH CONNECTION FOR USER:xxxx
<server> SSH: EXEC sshpass -d12 ssh -C -o ControlMaster=auto -o 
ControlPersist=60s -o StrictHostKeyChecking=no -o U
ser=surya_subramanian -o ConnectTimeout=10 -o 
ControlPath=/home/vagrant/.ansible/cp/305901ab16 -tt nj12mhf5685 '/bin/sh
-c '"'"'/usr/local/bin/sudo su  -p "[sudo via ansible, 
key=mkqlqucvkvgamlynmqitnoknuevmiges] password: " -u wlsrghf /bin
/sh -c '"'"'"'"'"'"'"'"'echo 
BECOME-SUCCESS-mkqlqucvkvgamlynmqitnoknuevmiges; /usr/bin/python 
/var/tmp/ansible-tmp-15409
18785.12-245644937797326/setup.py'"'"'"'"'"'"'"'"' && sleep 0'"'"''
fatal: [server]: FAILED! => {
    "msg": "Timeout (12s) waiting for privilege escalation prompt: "
}
        to retry, use: --limit 
@/home/vagrant/ansible-mysudo-imple/ansible-Sudo/rg_repo/server_control.retry

PLAY RECAP 
*************************************************************************************************************


Am facing above issue when am executing using become module.can anyone help 
me on it as i tried multiple approach to fix it.



On Saturday, October 20, 2018 at 1:17:41 PM UTC+5:30, Bairava Surya wrote:
>
> hi all,
>
>
> i want to run basic command on solaris OS i.e whoami using become 
> command.so am able to sudo to different user using putty successfully but 
> facing issues via ansible.
>
> OS:solaris
> Sudo user:mygroup
> sudo implementation:.usr/local/bin/sudo su - mygroup
> Authentication:QAS(VAS)
>
> Error:
> fatal: [mahcine]: FAILED! => {"changed": false, "module_stderr": "Shared 
> connection to machineclosed.\r\n", "module_stdout": "/bin/sh: sudo:
> not found\r\n", "msg": "MODULE FAILURE", "rc": 1}
>
>
> can anyone guide me what changes i need to make inorder to get output as 
> *mygroup*
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/cb25ba9e-b56e-4c81-85a0-9b31888cd2dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to