modules/find: param contains: Describe matching behavior (#80744)

pull/81017/head
Felix Stupp 1 year ago committed by GitHub
parent 6ac0ea3567
commit a473bb798d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,6 +56,9 @@ options:
contains: contains:
description: description:
- A regular expression or pattern which should be matched against the file content. - A regular expression or pattern which should be matched against the file content.
- If I(read_whole_file) is C(true) it matches against the beginning of the line (uses
C(re.match())). If I(read_whole_file) is C(false), it searches anywhere for that pattern
(uses C(re.search())).
- Works only when I(file_type) is C(file). - Works only when I(file_type) is C(file).
type: str type: str
read_whole_file: read_whole_file:

Loading…
Cancel
Save