ansible command和shell的区别

1、command模块不支持管道符和变量等,如果要使用这些,需要shell模块。

2、在使用ansible中的时候,默认的模块是-m command,从而模块的参数不需要填写,直接使用即可

原文地址:https://www.cnblogs.com/fanren224/p/8525477.html