Hii

On Fri, 7 May 2021 at 11:40, Lomic Legone <[email protected]> wrote:
>
> Hi all, I'm a newbee on ansible and I follow online tutos.
>
> I installed 2 ubuntu VM (named ubunt1 and ubunt2), one as node manager 
> (ubuntu1) and the second one as simple node (ubuntu2). The ssh connection is 
> tested and ok.
>
> When I installed ubuntu, I've never been asked for a root password, but only 
> for the name/password for a simple user. But this user belongs to sudoers 
> group so it can make admin tasks. So all is ok.

That is one thing. Depending on your config, you might also have to
provide the password to use sudo.

> The pb is that as I try to execute root tasks from ubuntu1 to ubuntu2 with 
> ansible,

What are "root tasks"? Is this different from tasks that require sudo?

> even if ubuntu2 user belongs to sudoers groups, ansible fails. And if I use 
> the "-become" option, ansible asks me the ubuntu2 root password that I don't 
> know of course.

See above, this might be required on your config. Check the NOPASSWD
option in your sudoers configuration.

I assume the same username is used on both machines.





>
> In fact I feel that the fact that ubuntu2 user has sudo privilege is useless.
>
> So how to do ?
>
> Thanks for your responses.
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/bcf355f1-73a0-4228-ab02-75105617672bn%40googlegroups.com.



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPGZ%2Bo9%3Df1SZk9k05NFKVXudPGzE%3D4EUGjZ%2B3PyyhE5HQ%40mail.gmail.com.

Reply via email to