首页 > 其他 > 详细

ansible 使用例子

时间:2018-06-20 12:11:04      阅读:161      评论:0      收藏:0      [点我收藏+]

寻找/etc/ 名为"hosts" 递归查找

ansible webserver -m find -a ‘ path=/etc/ file_type=any recurse=yes  pattern="hosts"‘

/etc/下包含xiaowei的文件

ansible webserver -m find -a ‘ path=/etc/ contains=‘.*xiaowei.*‘ recurse=yes ‘

ansible 使用例子

原文:https://www.cnblogs.com/hixiaowei/p/9203053.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!