diff --git a/playbook.yml b/playbook.yml index 05caa94..480f6fd 100644 --- a/playbook.yml +++ b/playbook.yml @@ -66,19 +66,19 @@ groups: k3s_ha with_items: "{{ nodes }}" - - name: Scan public keys - ansible.builtin.command: - cmd: "ssh-keyscan -t rsa {{ item.ip }} | grep ^[^#]" - register: publickeys - with_items: "{{ nodes }}" + # - name: Scan public keys + # ansible.builtin.shell: + # cmd: "ssh-keyscan -t rsa {{ item.ip }}" + # register: publickeys + # with_items: "{{ nodes }}" - - name: Store public keys - ansible.builtin.known_hosts: - name: "{{ item.item }}" - key: "{{ item.stdout }}" - state: present - path: ~/.ssh/known_hosts - with_items: "{{ publickeys.results }}" + # - name: Store public keys + # ansible.builtin.known_hosts: + # name: "{{ item.item }}" + # key: "{{ item.stdout }}" + # state: present + # path: ~/.ssh/known_hosts + # with_items: "{{ publickeys.results }}" - name: Provision Kubernetes hosts: k3s_ha