寻找/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 ‘
原文地址:https://www.cnblogs.com/hixiaowei/p/9203053.html
时间: 2024-10-02 18:17:30