Do one host first then the other if you are doing this manually. If you are
trying to use ansible to exactly do this steps then use the user module and
authorized_key

On Tue, Aug 21, 2018 at 9:24 AM Henrik Schuetze <frodo...@gmail.com> wrote:

> the syntax for ssh-copy-id is: ssh-copy-id -i ~/.ssh/mykey user@host
>
> And i want:   from Host1 to Host2
>               and from host2 to host1
>
> I don't know how to specify the other host in a such a scenario
>
>
>
> Am Dienstag, 21. August 2018 15:15:29 UTC+2 schrieb Jonathan Lozada De La
> Matta:
>>
>> what do you mean? hard code what exactly?
>>
>> On Tue, Aug 21, 2018 at 9:13 AM Henrik Schuetze <frod...@gmail.com>
>> wrote:
>>
>>> thanx. but i need to address the other host. And i dont want to hard
>>> code the ip adress in this task
>>>
>>>
>>>
>>>
>>> Am Dienstag, 21. August 2018 14:39:30 UTC+2 schrieb Henrik Schuetze:
>>>>
>>>> Hi,
>>>>
>>>> i want to enable ssh between two linux hosts.
>>>> i generate the ssh key on both hosts.
>>>> and then i need to add the keys on the other servers respectively
>>>>
>>>> Does anyone has a ready solution for that?
>>>>
>>>>
>>>> greetings
>>>> Henrik
>>>>
>>> --
>>> 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-proje...@googlegroups.com.
>>> To post to this group, send email to ansible...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/210cb9fc-9e1c-4883-9b1f-6c0f63e90931%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/210cb9fc-9e1c-4883-9b1f-6c0f63e90931%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>> Jonathan lozada de la matta
>>
>> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>>
>> Red Hat Consulting Services <https://www.redhat.com/>
>>
>> jloz...@redhat.com
>>
>>
>>
>>
>> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9c6a2a11-0998-4be8-98e4-387040089eaf%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9c6a2a11-0998-4be8-98e4-387040089eaf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan lozada de la matta

AUTOMATION CONSULTANT - AUTOMATION PRACTICE

Red Hat Consulting Services <https://www.redhat.com/>

jloza...@redhat.com

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BL0PJKVVv1T2jCzS2WH-cd0XoX0Y5hJ0T4t2UUTjadLYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to