Also, you should not be running ansible as root on the control machine.

On Fri, 24 May 2019 at 13:59, bala <[email protected]> wrote:
>
> 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.
>> 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.



-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
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/CAL8fbwO3yMuGWpZ5ywP68vk8biO6WDgVYUvw60fvusUeuHp%3DkQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to