1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Corrected the examples in find module to make sure the commands are accurate to what is being described.

This commit is contained in:
Phillip Thurston 2017-06-28 16:03:50 -06:00 committed by Brian Coca
parent 4c72e98262
commit a2f38de173

View file

@ -125,14 +125,14 @@ EXAMPLES = r'''
- name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz - name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz
- find: - find:
paths: /var/tmp paths: /var/log
patterns: '*.old,*.log.gz' patterns: '*.old,*.log.gz'
size: 10m size: 10m
# Note that YAML double quotes require escaping backslashes but yaml single quotes do not. # Note that YAML double quotes require escaping backslashes but yaml single quotes do not.
- name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz via regex - name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz via regex
- find: - find:
paths: /var/tmp paths: /var/log
patterns: "^.*?\\.(?:old|log\\.gz)$" patterns: "^.*?\\.(?:old|log\\.gz)$"
size: 10m size: 10m
use_regex: yes use_regex: yes