On Mon, 7 Oct 2019 12:42:24 -0700 (PDT)
Vicente Domínguez <vi19...@gmail.com> 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/20191007222739.085064cf%40gmail.com.

Attachment: pgpQ8SBtKcA4F.pgp
Description: OpenPGP digital signature

Reply via email to