Populate 'known_hosts'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
abd79df3c3
commit
5e83766370
@ -66,6 +66,11 @@
|
|||||||
groups: k3s_ha
|
groups: k3s_ha
|
||||||
with_items: "{{ nodes }}"
|
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
|
- name: Provision Kubernetes
|
||||||
hosts: k3s_ha
|
hosts: k3s_ha
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
Loading…
Reference in New Issue
Block a user