diff --git a/playbook.yml b/playbook.yml index 0344129..2342220 100644 --- a/playbook.yml +++ b/playbook.yml @@ -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