配置ssh密钥登录 # 配置ansible ssh密钥登陆 ssh-keygen -t rsa -b 2048 回车 回车 回车 ssh-copy-id $IP #$IP为本虚机地址,按照提示输入yes 和root密码