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

pull/26204/head
Phillip Thurston 8 years ago committed by Brian Coca
parent 4c72e98262
commit a2f38de173

@ -125,14 +125,14 @@ EXAMPLES = r'''
- name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz
- find:
paths: /var/tmp
paths: /var/log
patterns: '*.old,*.log.gz'
size: 10m
# 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
- find:
paths: /var/tmp
paths: /var/log
patterns: "^.*?\\.(?:old|log\\.gz)$"
size: 10m
use_regex: yes

Loading…
Cancel
Save