Create a new condition only once.
⚙️ Compatible targets: Linux
|The condition to define.
This parameter is required.
This method define a condition named from the parameter Condition when it is called for the first time. Following agent execution will not define the condition.
This allows executing actions only once on a given machine. The created condition is global to the agent.
In case of reinstallation or factory-reset of the Rudder agent, this method will no longer detect if the condition has already been defined.
If you use:
The first agent run will have the condition
my_condition defined, contrary to subsequent runs
for which no condition will be defined.
See also : command_execution_once