Populate 'known_hosts'
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-19 21:37:10 +02:00
parent abd79df3c3
commit 5e83766370

View File

@ -66,6 +66,11 @@
groups: k3s_ha
with_items: "{{ nodes }}"
- name: Store public keys in 'known_hosts'
ansible.builtin.command:
cmd: ssh-keyscan -t rsa {{ item.ip }} >> ~/.ssh/known_hosts
with_items: "{{ nodes }}"
- name: Provision Kubernetes
hosts: k3s_ha
gather_facts: false