Populate 'known_hosts'
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Danny Bessems 2022-04-19 21:37:10 +02:00
parent abd79df3c3
commit 5e83766370
1 changed files with 5 additions and 0 deletions

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