# 查看
ansible yw -m raw -a 'cd /opt/xx/logs && find . -mtime +7 -name "*.log" '

# 删除
ansible yw -m raw -a 'cd /opt/xx/logs && find . -mtime +7 -name "*.log" | xargs -i rm -f {}'
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""