Thanks Kai.

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?

Fayad

On Fri, Jul 28, 2017 at 7:01 PM, Kai Stian Olstad <
[email protected]> wrote:

> On 28.07.2017 05:50, Fayad wrote:
>
>> Is it required to run ansible commands as the root user?
>>
>
> No.
>
>
> If running as another user, is there any privileges required to be given
>> for this user?
>>
>
> No.
> But if a command or a action need privileges the user doesn't have it will
> of course not work with Ansible either.
>
> --
> 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/ms
> gid/ansible-project/69d3b2799e2c330b68f7d6119cf3997b%40olstad.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/CAFFLvzcYzpg%2BbhM5NvGKNkMRhXZaNBiCxQX6mKsVnCYpYT3_hA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to