ansible远端执行本地脚本

shell 方式

ssh 192.100.16.9 < raid_info.sh

ansible 方式

ansible -i ip_list all -m script -a "raid_info.sh"

 

posted @ 2022-01-27 16:40  Hello_worlds  阅读(757)  评论(0编辑  收藏  举报