执行脚本

1.执行本地脚本

[root@L ansible]# ansible test -m script -a '/root/shells/lnmp.sh' 

2.执行客户机上的脚本

[root@L ansible]# ansible test  -a '/root/lnmp.sh'

 

posted @ 2018-12-25 13:09  Ray_chen  阅读(226)  评论(0编辑  收藏  举报