Hi Visser,

  Let me explain each and every step.
 
   With our solaris box so generally we try to login as our user by 
entering username and password and again we run sudo command to other user 
by entering password.
So here sudo expects password in interactively prompt way so how we can 
achieve this using ansible.



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/7b356157-eeef-44fd-920e-5cd90d9a8ce4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to