Likes this?

ansible-playbook -i hosts playbook.yml --key-file "~/.ssh/mykey.pem"


See in
https://stackoverflow.com/questions/44734179/specifying-ssh-key-in-ansible-playbook-file


Il ven 14 set 2018, 08:53 SUMIT SAHAY <sumitsahay....@gmail.com> ha scritto:

> Hi All,
>
> I want to know is there any way to get connect to the remote host with
> ansible control server using rsa key.
>
> Instead of using user name and password I want to use rsa key for
> authentication.
>
> How can we do that?
>
> Looking forward for reply.
>
> Thanks & Regards
> Sumit Sahay
>
> --
> 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/d8819b40-3681-4a96-af56-aab0821fa758%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d8819b40-3681-4a96-af56-aab0821fa758%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 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/CAJ%3DxKPYrpuk_phKQchU7nJeTmh99V-_msh7H%2BZSMFRT%3D6FvzyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to