ansible安装初始化

发表于 LINUX 分类,标签:

接上一篇文章,做好免密登录之后

https://blog.linuxnb.com/index.php/post/94.html



image.png

image.png

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"


0 篇评论

发表我的评论