From 30822e5f91d7de1aa22e04df0d66d64dbc8073c9 Mon Sep 17 00:00:00 2001 From: Colin Nolan Date: Thu, 12 Oct 2017 00:43:18 +0100 Subject: [PATCH] Corrects examples in the `find` module. (#31522) --- lib/ansible/modules/files/find.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/files/find.py b/lib/ansible/modules/files/find.py index dbc18d30306..def9480154a 100644 --- a/lib/ansible/modules/files/find.py +++ b/lib/ansible/modules/files/find.py @@ -100,28 +100,28 @@ EXAMPLES = r''' recurse: yes - name: Recursively find /tmp files older than 4 weeks and equal or greater than 1 megabyte -- find: + find: paths: /tmp age: 4w size: 1m recurse: yes - name: Recursively find /var/tmp files with last access time greater than 3600 seconds -- find: + find: paths: /var/tmp age: 3600 age_stamp: atime recurse: yes - name: Find /var/log files equal or greater than 10 megabytes ending with .old or .log.gz -- find: + find: 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: + find: paths: /var/log patterns: "^.*?\\.(?:old|log\\.gz)$" size: 10m