Hello. 
There are two hosts. On first I create a user and generate SSH keys. Now I 
need to transfer private key to second host to connect using it to first 
host without creating a user on second. I haven't found an output of 
parameter ssh_key as analogg to ssh_public_key in module user. In other 
modules related to SSH there is only a possibility to see contents of 
public key. What is the reason for this restriction?

The documentation 
<https://docs.ansible.com/ansible/latest/modules/user_module.html> is 
written about the path to the ssh public key. in the example of a private 
key.

ssh_key_file  Path to generated SSH public key file. *Sample*: 
/home/asmith/.ssh/id_rsa

-- 
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/97cdbda3-03a5-438d-9fe2-cde60551a5c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to