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:
parent
4c72e98262
commit
a2f38de173
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue