diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2017-01-07 08:50:10 -0800 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2017-01-07 13:00:15 -0800 |
commit | aee66d7b5b74651acd4e2c5de8a9e2b02f2a0fc5 (patch) | |
tree | 322f7b591cbbd8349ac68f3e04a9aa0168aab360 /lib/ansible/modules/files/find.py | |
parent | adb7426c0c3e52db719c388f51a8bb4aadf453e7 (diff) | |
download | ansible-docs-code-block-fixes.tar.gz |
Fix code-blocks to use correct syntax highlightingdocs-code-block-fixes
Diffstat (limited to 'lib/ansible/modules/files/find.py')
-rw-r--r-- | lib/ansible/modules/files/find.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ansible/modules/files/find.py b/lib/ansible/modules/files/find.py index eee57e44fc..15f4d6eced 100644 --- a/lib/ansible/modules/files/find.py +++ b/lib/ansible/modules/files/find.py @@ -121,7 +121,7 @@ options: ''' -EXAMPLES = ''' +EXAMPLES = r''' # Recursively find /tmp files older than 2 days - find: paths: "/tmp" @@ -149,9 +149,11 @@ EXAMPLES = ''' size: "10m" # find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz via regex +# Note that yaml double quotes require escaping backslashes but yaml single +# quotes do not. - find: paths: "/var/tmp" - patterns: "^.*?\.(?:old|log\.gz)$" + patterns: "^.*?\\.(?:old|log\\.gz)$" size: "10m" use_regex: True ''' |