This commit is contained in:
parent
0e98e23514
commit
ae49bffb2d
@ -82,6 +82,8 @@
|
|||||||
cmd: "ssh-keyscan -t rsa {{ item.ip }}"
|
cmd: "ssh-keyscan -t rsa {{ item.ip }}"
|
||||||
register: publickeys
|
register: publickeys
|
||||||
loop: "{{ nodes }}"
|
loop: "{{ nodes }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ { 'name': item.name, 'ip': item.ip } }}"
|
||||||
|
|
||||||
- name: Store public keys
|
- name: Store public keys
|
||||||
ansible.builtin.known_hosts:
|
ansible.builtin.known_hosts:
|
||||||
@ -91,7 +93,7 @@
|
|||||||
path: ~/.ssh/known_hosts
|
path: ~/.ssh/known_hosts
|
||||||
loop: "{{ publickeys.results }}"
|
loop: "{{ publickeys.results }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ { 'name': item.item.name, 'ip': item.item.ip } }}"
|
label: "{{ { 'name': item.name, 'ip': item.ip } }}"
|
||||||
|
|
||||||
- name: Provision Kubernetes
|
- name: Provision Kubernetes
|
||||||
hosts: k3s_ha
|
hosts: k3s_ha
|
||||||
|
Loading…
Reference in New Issue
Block a user