David Moreau-Simard e748a8a56b
Multi-node: Streamline multi-node-known-hosts
We're now evaluating the condition whether or not to run this role
at the playbook level instead since there are different roles using
this same condition.

Change-Id: I99738c7e98133838f989ed369a09ecb6a7b64054
2017-09-26 15:32:07 -04:00

10 lines
276 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 }}"