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.
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.
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
Also, you should not be running ansible as root on the control machine.
I am using root user to run ansible playbook, and I do not have access to change user sudo permission in client machine.
Any other idea?