摘要:
1.什么是ad-hoc ad-hoc简而言之就是远程执行“临时命令”,执行完即结束,并不会保存 2.ad-hoc使用场景 比如在多台机器上查看某个进程是否启动,或拷贝指定文件到本地,等等 3.ad-hoc使用 [root@m01 ~]# ansible 'web01' -m shell -a 'fr 阅读全文
posted @ 2020-10-07 13:53
六月OvO
阅读(128)
评论(0)
推荐(0)
摘要:
1)方式一: #ip+端口+用户+密码 [root@m01 ~]# vim /etc/ansible/hosts [web01] 172.16.1.7 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass='1' [web03] 172 阅读全文
posted @ 2020-10-07 13:48
六月OvO
阅读(520)
评论(0)
推荐(0)

浙公网安备 33010602011771号