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 · 226 阅读 · 0 评论 -
Ansible安装,配置服务器免密登录问题
1. yum安装ansible参考https://www.w3cschool.cn/automate_with_ansible/automate_with_ansible-1khc27p1.htmlyum install -y epel-releaseyum install -y ansible[root@testx yum.repos.d]# ansible --version2. ansible配置文件路径[root@testx yum.repos.d]# cd /etc/ansibl原创 2020-09-29 19:19:38 · 306 阅读 · 0 评论