summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-04-22 12:38:18 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-04-22 12:38:18 +0200
commit1fb7e1f17af125a5cae1517190b124e871cc9be8 (patch)
tree95afefa0ae981b8da27516a8ba45926a327db9a0
parent2df9294b9a0262f5aaeab85fd8d952eb62e9835b (diff)
[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 <b.grzybowski@partner.samsung.com>
-rw-r--r--ansible/roles/rke/tasks/rke_config.yml8
1 files changed, 0 insertions, 8 deletions
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 }}"