Exacly! 
I've created a new user (usertest) on the Control Node and tried to connect 
to the managed node, with the same conditions as before (ansible user with 
no priv. escalation nor ansible_user var defined).
Result --> SSH raised an authentication error =)

Thank you Vladimir.

El lunes, 7 de octubre de 2019, 22:27:50 (UTC+2), Vladimir Botka escribió:
>
> On Mon, 7 Oct 2019 12:42:24 -0700 (PDT) 
> Vicente Domínguez <vi1...@gmail.com <javascript:>> wrote: 
>
> > Let's imagine that I don't have ANSIBLE user on the managed host, as 
> > follows: 
> > -->Control Node:  ANSIBLE - ROOT 
> > -->Managed Host: SSHUSER - ROOT   
> > [...] 
> > If ANSIBLE is my default "ansible_user" and It establishes a SSH 
> connection 
> > like ansi...@host1.example.com... It would prompt an error because the 
> user 
> > does not exists on the managed host, wouldn't it? 
>
> Yes, it would. That's the --user option for. For example 
>
>   $ ansible host1.example.com --user SSHUSER --module-name setup 
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f00a7a8-4468-407e-b463-ce72fa4c226b%40googlegroups.com.

Reply via email to