Update

Check the comments for new workflows.

Original from 19/May/2014… updated!

I found this workflow for our systems:

  1. Up the new box.
  2. Generate keys in that new box.
  3. “Fetch” the pub key from the new server to the ansible server.
  4. Copy that key to authorized_keys file of the other server (from ansible server).
  5. Execute a rsync from the new server without asking key to the other server.

My trick is:

It is working perfectly but i would like to know if another way is possible.

Thanks…

Update 06/Dec/2014:

Same workflow, new lines (optimized?):

Similar but not equal :)