cc2ed9fa5f
Things will need to be done a bit differently for localhost-ssh, so this is just for the case of multiple nodes needing to be able to SSH to eachother. Change-Id: I941cf3de7691ee1b5277ca50c7bb9daa5b9a0732
11 lines
280 B
YAML
11 lines
280 B
YAML
- name: Get known_hosts facts
|
|
generate_all_known_hosts:
|
|
hostvars: "{{ hostvars }}"
|
|
|
|
- name: add known_host record for every public key of every other ip, hostname
|
|
known_hosts:
|
|
name: "{{ item.name }}"
|
|
key: "{{ item.key }}"
|
|
with_items:
|
|
"{{ all_known_hosts }}"
|