reborn枪
hosts模块的参数正常使用root用户登录,端口22
nfs01-31 ansible_ssh_host=172.16.1.31 ansible_ssh_port=22 ansible_connection=ssh ansible_ssh_user=root
使用sudo登录用户的,端口是52113
nfs02-32 ansible_ssh_host=172.16.1.32 ansible_ssh_port=52113 ansible_connection=ssh ansible_ssh_user=xusx
页:
[1]