颇为阿娇978 发表于 2018-1-3 11:51:55

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]
查看完整版本: reborn枪