On 28. juli 2017 17:12, Fayad wrote:
I've added the following line in the /etc/sudoers file on the client server:
ansible_user ALL=(root) NOPASSWD: ALL
Won't this provide enough privilege for the ansible user to execute
commands as root?
Yes, it will, but you still has to tell ansible to use become, it won't
magically use sudo unless you specify become: true or use the option -b
on the command line.
--
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/e7a63a07-8c7c-fe33-71ca-73e6a799d748%40olstad.com.
For more options, visit https://groups.google.com/d/optout.