Open bhuddah opened 1 month ago
Hi bhuddah,
thanks for reporting this issue. First, i have to mention that the current collection release is not fully ready for Checkmk 2.3.0. We plan to release version 5.0.0 of the collection with 2.3.0 support soon.
Besides that, at the current state we can't fully assure that the rule module always works idempotent. Root cause is how rules get created inside Checkmk and shown afterwards with the API.
But for your rule, please test this again, after the 5.0.0 is out.
KR, Max
I have tested this first with checkmk 2.2.0p22 before trying with the most recent version so i can confirm that it currently not works in 2.2.0 either. thanks for the feedback
There is some further reading here:
TL;DR: Idempotency is not perfect, but pretty good overall. Sometimes it needs a little testing how to best structure the data, so you might want to browse our tests/integration/
directory for some ideas.
Describe the bug Rules added to special_agents:vsphere are not recognized again, so it is impossible to delete rules and rules are added everytime the play is run.
Component Name
Component Name: modules.rules
Ansible Version
Checkmk Version and Edition
Collection Version
To Reproduce Steps to reproduce the behavior:
Expected behavior Rule is added once and recognized on second run.
Actual behavior Rule is added once more with each subsequent run.
Minimum reproduction example
Additional context