regexinfile BackendΒΆ

Look for a regex (regular expression) in file.

Regex is checked using re.search.

Attributes

Property

Descrption

path

Path to a local file. [required]

regex

Regex to look in a file. [required]

Examples

Look for a regex in a file:

jiav:
  verification_status: "Done"
  verification_steps:
    - name: "Search for a regex in file"
      backend: "lineinfile"
      path: "/path/to/file"
      regex: "^.*hello.*$"