On 04.10.2018 09:55, Rajendra Rawat wrote:
I have assigned wheel group to the user "rajrawat"

usermod -aG wheel rajrawat


Entry in sudoers file is as below.

%wheel  ALL=(ALL)       ALL


I am able to run below commands and able to switch to root user.

sudo su -

sudo -i

on remote machine manually and its working fine but it is not working from
ansible playbook.

Any help would be appreciated. Thanks

The next step would be to run ansible-playbook with -vvvv and see if that gives any clues.

--
Kai Stian Olstad

--
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/924b1b683adb220a909d100544ce1034%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to