ANSIBLE笔记

Ansible 网易云课堂Ansible精讲 配置文件可以分组和加变量,还可以从python脚本或接口中动态获取 [sy] 10.32.4.192 10.32.4.[51:53] 10.32.4.194:60022 快速批量免密登录 IP一列.txt a=`cat /root/wywip.txt` [阅读全文]

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 测 [阅读全文]