Helps manage SSH authentication across machines using keys.
None
ssh_auth_keys:
- left_host: 'machine2' # The client
right_host: 'machine1' # The remote
left_user: 'root'
right_user: 'root'
key_name: id_rsa
key_options: 'from="{{ hostvars["machine2"].ansible_eth1.ipv4.address }}"'
overwrite_key: false
None
- hosts: all
roles:
- ssh-keys
BSD