ansible学习

安装 apt-get install <a href="http://yw8.tech/tag/ansible/" title="查看与 ansible 相关的文章" target="_blank">ansible</a> sshpass -y 批量互信 vi wywip.txt a=`cat /root/wywip.txt` echo $a ssh-keygen -t dsa -f /root/.ssh/id_dsa -N "" for ip in $a; do sshpass -p "weiwei" ssh-copy-id -i /root/.ssh/id_dsa.pub root@$ip -o StrictHostKeyChecking=no ; done 测 [阅读全文]