pl try adding user in suoder

%user ALL=(ALL) NOPASSWD: /bin/su - *
and in ansible.cfg
Use su as the become_method and also use sudo su - as become_exe





On Fri, May 24, 2019 at 4:36 PM Barun kumar <[email protected]> wrote:

> Hi Team,
>
> I am trying to run a playbook book on client machine with sudo privilege,
> Getting below error.
> where clients /etc/sudoers file are updated with "All  All=!SUDOSUDO ".
>
> Let me know how to proceed on this.
>
> --
> 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/CADG%3DkosJgCfpNt45h_S%2Bp1%3D1YjKyTZsW-PJ2Xdu%3DMbCc-Ur4gQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CADG%3DkosJgCfpNt45h_S%2Bp1%3D1YjKyTZsW-PJ2Xdu%3DMbCc-Ur4gQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CADUikpwVf8pjFcz9-gJYqCiiR9zz%2B3n528q9s5njyw8FFXZ0eA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to