ansible 使用例子

寻找/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 '

猜你喜欢

转载自www.cnblogs.com/hixiaowei/p/9203053.html