file_line_present_in_ini_section

Ensure that a line is present in a section in a specific location. The objective of this method is to handle INI-style files.

⚙️ Compatible targets: Linux

Parameters

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

This parameter is required.
sectionName of the INI-style section under which lines should be added (not including the [] brackets).

This parameter is required.
lineLine to ensure is present inside the section.

This parameter is required.

Example

method: file_line_present_in_ini_section
params:
  path: VALUE
  line: VALUE
  section: VALUE