I'm trying to migrate an existing cloud cluster to ansible.

It's about 10 machines.

I want to use Ansible to add my SSH key to all boxes so I can just ssh 
authenticate.

But the I have the following problems:

1. none of the connections work because the ssh host keys aren't installed.

2. I first need to authenticate with a password before the ssh key can be 
installed.

Is there anyway to force SSH to be both serial and interactive?

This way it would go through each host, one at a time, add the SSH host key 
if I confirm, then prompt for the root password, and then add my SSH key.

At which point I would be done.

I have to do this for like 50 -70 machines for a big ansible migration and 
I'd prefer to not spend an hour doing this manually :-(

-- 
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/73a350e1-eb46-4f5b-a4f6-19ed1b086821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to