ansible命令

重启服务器:

ansible testhosts -a “/sbin/reboot”

字符转替换命令:将ABC替换长abc

ansible ansible-demo3 -m replace -a 'path=/testdir/test regexp="ABC" replace=abc'

猜你喜欢

转载自www.cnblogs.com/fanlong0212/p/12189071.html