From 07ad669dd60ab0c88eaee83c10bc06116beecf34 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Fri, 22 Apr 2022 12:38:18 +0200 Subject: [ANSIBLE] Do not add kubernetes nodes host keys to known_hosts file This operation is redundant and causes a warning on each ssh connection from infra host to any node. As per documentation keys should be set up prior to running installer with setup.yml playbook. If using cicdansible those are also set up automatically there. Change-Id: I4fae07f632b425321e95cff02370e6e7f2b5e66f Issue-ID: OOM-2964 Signed-off-by: Bartek Grzybowski --- ansible/roles/rke/tasks/rke_config.yml | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ansible') diff --git a/ansible/roles/rke/tasks/rke_config.yml b/ansible/roles/rke/tasks/rke_config.yml index 9dc0d8c6..2759a476 100644 --- a/ansible/roles/rke/tasks/rke_config.yml +++ b/ansible/roles/rke/tasks/rke_config.yml @@ -5,14 +5,6 @@ mode: 0700 state: directory -- name: Add kubernetes nodes host keys to known_hosts file - known_hosts: - name: "{{ hostvars[item].cluster_ip }}" - key: "{{ hostvars[item].cluster_ip }} ssh-rsa {{ hostvars[item].ansible_ssh_host_key_rsa_public }}" - hash_host: true - state: present - loop: "{{ groups['kubernetes'] }}" - - name: "Ensure {{ cluster_config_dir }} is present" file: path: "{{ cluster_config_dir }}" -- cgit 1.2.3-korg