CentOS Linux release 7.6.1810 (Core)
yum install epel-release -y
yum install ansible -y
// I'm using Ansible version 2.6.2 and solution with host_key_checking = false doesn't work.
// Adding environment variable export ANSIBLE_HOST_KEY_CHECKING=False skipping fingerprint check.
export ANSIBLE_HOST_KEY_CHECKING=False
ssh-keygen
// copy to other nodes
ssh-copy-id root@10.57.1.202
cd /etc/ansible/playbook/k8s/cluster/
ansible-playbook deploy_kubernetes_cluster.yml -i /etc/ansible/inventory
cd /etc/ansible/playbook/k8s/new_node
ansible-playbook add_new_node.yml -i /etc/ansible/inventory
/etc/ansible/inventory