Hi,

I have tried with the --ask-pass. In this case system asks for the first
password but not the second.

It raises the "Authentication failure" error.

Thanks a lot
Oscar



El 24 nov. 2017 15:33, "Kai Stian Olstad" <[email protected]>
escribió:

On Thursday, 23 November 2017 23.47.21 CET Oscar Segarra wrote:
> I'm able to connect to my guest through my jump server by setting my
> .ssh/config file as:
>
> Host vdicnode01
>   HostName vdicnode01
>
> ### Host to jump to via jumphost1.example.org
> Host vdicone01
>   HostName vdicone01
>   ProxyJump  vdicnode01
>
> [root@vdicmanager01 ansible]# ssh vdicone01
> root@vdicnode01's password:
> root@vdicone01's password:

It seams like you need to provide your password twice, I'm not sure that
Ansible support that.


> Last login: Thu Nov 23 23:41:45 2017 from vdicnode01
> [root@vdicone01 ~]#
>
> But from ansible, I'm not able to make it work:
>
> [root@vdicmanager01 ansible]# ansible vdicone01 -m ping -vv
> ansible 2.4.1.0
>   config file = /etc/ansible/ansible.cfg
>   configured module search path = [u'/root/.ansible/plugins/modules',
> u'/usr/share/ansible/plugins/modules']
>   ansible python module location = /usr/lib/python2.7/site-
packages/ansible
>   executable location = /usr/bin/ansible
>   python version = 2.7.5 (default, Aug  4 2017, 00:39:18) [GCC 4.8.5
> 20150623 (Red Hat 4.8.5-16)]
> Using /etc/ansible/ansible.cfg as config file
> META: ran handlers
> *vdicone01 | UNREACHABLE! => {*
> *    "changed": false,*
> *    "msg": "Authentication failure.",*
> *    "unreachable": true*
> }
> [root@vdicmanager01 ansible]#
>
> Thanks a lot and sorry for my previous missexplanation.

You need to tell Ansible to use password, default Ansible just connect an
expect it to work.
If you add -k/--ask-pass to the command line Ansible ask for the password.

If you like this to be default you can change ansible.cfg.

--
Kai Stian Olstad

--
You received this message because you are subscribed to a topic in the
Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/ansible-project/X5wVucEpFFI/unsubscribe.
To unsubscribe from this group and all its topics, 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/1809616.s7aI7YB5lc%40x1.
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/CAJq8taG0yuEvNGT8aWidQiE53%3D45GpW78Rjg7LT_Yfb1E0EMfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to