-
file模块
文件的相关操作,新增,删除
https://www.cnblogs.com/keerya/p/8040071.html -
ping模块
检测联通行
https://www.cnblogs.com/keerya/p/8040071.html -
command模块
linux命令的相关操作,不能使用管道符等shell功能
https://www.cnblogs.com/keerya/p/8040071.html -
shell模块
可以使用管道符,被控机器上是调用/usr/bin/sh来执行所使用的的命令的
https://www.cnblogs.com/keerya/p/8040071.html -
blockinfile模块
修改文件内的多行内容
https://blog.csdn.net/weixin_43384009/article/details/105056767?spm=1001.2101.3001.6650.4&utm_medium=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-4-105056767-blog-127105897.pc_relevant_recovery_v2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~CTRLIST~Rate-4-105056767-blog-127105897.pc_relevant_recovery_v2&utm_relevant_index=7
https://blog.csdn.net/dylloveyou/article/details/80602152?spm=1001.2101.3001.6650.7&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-7-80602152-blog-127105897.pc_relevant_recovery_v2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~Rate-7-80602152-blog-127105897.pc_relevant_recovery_v2&utm_relevant_index=10 -
lineinfile模块
修改文件内的单行内容,这个替换的话,只能替换一行,多行的话,需要使用replace模块
https://www.cnblogs.com/yangtao416/p/16707109.html -
replace模块
替换文件内的多行内容
https://www.cnblogs.com/yangtao416/p/16707109.html