diff --git a/lib/ansible/modules/files/find.py b/lib/ansible/modules/files/find.py index d6d1d42c4f..7d7d4ab03a 100644 --- a/lib/ansible/modules/files/find.py +++ b/lib/ansible/modules/files/find.py @@ -127,7 +127,7 @@ EXAMPLES = ''' - find: paths="/var/tmp" age="3600" age_stamp=atime recurse=yes # find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz -- find: paths="/var/tmp" patterns="'*.old','*.log.gz'" size="10m" +- find: paths="/var/tmp" patterns="*.old,*.log.gz" size="10m" # find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz via regex - find: paths="/var/tmp" patterns="^.*?\.(?:old|log\.gz)$" size="10m" use_regex=True