Hi together,
at the moment I want to change some parameter values in sysctl.conf via sysctl, but I want to change them only when they are under my minimum requirements.
By now, I think the only way of doing so is to define two tasks:
- one debug task to register a variable with the value of the specific parameter
- and one sysctl task with a when statement checking this parameter
The reason why I want to check the parameters for a minimum value is that I’m not and won’t be an expert for every parameter in this configuration file. I think
the developers and maintainers of the various distributions know much better than I what they are doing when setting a specific value. So I don’t want to overwrite it with my minimum requirements.
Do you know a better or at least a default way to check the parameter value before setting it?
Thanks for your help and best regards,
Felix