request for clarification for the sysctl module behaviour

Hi,

a sysctl task today does not change the state if the sysctl file has the kernel configuration item set in RHEL6, e.g. kernel.watchdog disabled, however in /proc/sys/kernel/watchdog it is enabled?

  • sysctl: name=kernel.watchdog value=0 state=present reload=yes

file /etc/sysctl.conf : kernel.watchdog=0
while echo /proc/sys/kernel/watchdog reports back 1
running the task reports OK, no change

is that because the sysctl module function is only to update the file, but not the system settings? or is that a bug? that if the file conflicts with the /proc it does not try to enforce any thing?

regards

Walid

Its a bug as the decision does not take into account if the change was not done via the sysctl.conf file

If you feel you have a bug, please report it on the github issue tracker.

There isn’t a bot that files bugs from mailing list posts, so this is the best way to make sure it is recorded, and that you also get updates if it is closed.

done, Issue #5469