ansible

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

  

 

posted @ 2017-05-02 17:55  reborn枪  阅读(71)  评论(0)    收藏  举报