file_key_value_present_in_ini_section
Ensure that a key-value pair is present in a section in a specific location. The objective of this method is to handle INI-style files.
⚙️ Compatible targets: Linux
Parameters
Name | Documentation |
---|---|
path | File name to edit (absolute path on the target node). This parameter is required. |
section | Name of the INI-style section under which the line should be added or modified (not including the [] brackets). This parameter is required. |
name | Name of the key to add or edit. This parameter is required. |
value | Value of the key to add or edit. This parameter is required. |
Example
method: file_key_value_present_in_ini_section
params:
section: VALUE
path: VALUE
name: VALUE
value: VALUE