1. 程式人生 > >ansible command和shell的區別

ansible command和shell的區別

圖片 變量 默認 OS http bsp 技術分享 -m gpo

1、command模塊不支持管道符和變量等,如果要使用這些,需要shell模塊。

技術分享圖片

2、在使用ansible中的時候,默認的模塊是-m command,從而模塊的參數不需要填寫,直接使用即可

ansible command和shell的區別