file_ensure_lines_absent

Ensure that a line is absent in a specific location.

⚙️ Compatible targets: Linux

⚠️ Deprecated: This method is deprecated and should not be used.

Parameters

NameDocumentation
pathFile name to edit (absolute path on the target node).

This parameter is required.
linesLine(s) to remove in the file.

This parameter is required.

Example

method: file_ensure_lines_absent
params:
  lines: VALUE
  path: VALUE