![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ansible
xuewu777777
这个作者很懒,什么都没留下…
展开
-
Ansible常用命令
1. 批量拷贝文件到指定目录 [mylog@zabbix-server ~]$ ansible test-host -m copy -a "src=/tmp/111.test dest=/tmp" 2. 批量安装指定软件 注意用户要提前配置好sudo免密切换到root [mylog@zabbix-server ansible]$ cat push.ssh.ymal - hosts: IDC2 remote_user: mylog become: yes # become_meth原创 2020-09-29 19:19:50 · 236 阅读 · 0 评论 -
Ansible安装,配置服务器免密登录问题
1. yum安装ansible 参考https://www.w3cschool.cn/automate_with_ansible/automate_with_ansible-1khc27p1.html yum install -y epel-release yum install -y ansible [root@testx yum.repos.d]# ansible --version 2. ansible配置文件路径 [root@testx yum.repos.d]# cd /etc/ansibl原创 2020-09-29 19:19:38 · 316 阅读 · 0 评论