接上一篇文章,做好免密登录之后
https://blog.linuxnb.com/index.php/post/94.html
yum -y install ansible cat >> /etc/ansible/hosts <<EOF [web] stone_1 stone_2 stone_3 stone_4 stone_5 stone_6 EOF ansible all -m shell -a date ansible web -m shell -a "free -h"
-
« 上一篇:
Linux配置ssh免密登录
-
使用cat和EOF添加多行数据
:下一篇 »