1.下载ansible

yum -y install ansible-2.9.7-1.el7.ans.noarch.rpm

2. 做ssh免密登录

ssh-******(生成密码)
ssh-copy-id [email protected](传密码,下次登录不用密码)
ssh-copy-id [email protected](传密码,下次登录不用密码)

3.写配置文件

vim /etc/ansible/hosts
部署ansible
写一个组名,下面是ip

4.测试是否连接成功

部署ansible

相关文章:

  • 2021-10-14
  • 2021-08-13
  • 2021-05-24
  • 2021-08-04
  • 2021-06-22
  • 2022-01-31
  • 2021-05-30
  • 2021-09-28
猜你喜欢
  • 2022-01-02
  • 2021-10-23
  • 2021-11-21
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
相关资源
相似解决方案