Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加sshpass组件,不需要强制配置ssh免密 #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bilbilmyc
Copy link

增加ansible inventory文件中使用SSH账号密码进行配置,不需要配置ssh免密。
/etc/kubeasz/clusters/xxx/hosts

......
# s所有主机密码一直可以使用all变量
[all:vars]
ansible_ssh_user=root
ansible_ssh_pass="123456"

# 如果账号密码不一样的话,可以分开写
[kube_node]
192.168.1.1 ansible_ssh_user="root" ansible_ssh_pass="123456"
192.168.1.2 ansible_ssh_user="root" ansible_ssh_pass="654321"

同时检查/etc/kubeasz/ansible.cfg,下面的配置必须保证为False

host_key_checking = False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant