Git Product home page Git Product logo

Comments (2)

robin-checkmk avatar robin-checkmk commented on September 27, 2024

Moinsen Peter! 🙂

Thanks for reporting this. Let me provide some background.

TASK [checkmk.general.agent : Linux: Download Vanilla CRE agent.] **************
changed: [midevansible.company.lan]

At the time of the download, we do not know whether we actually need the file. As the download goes to /tmp by default, the file will be gone after a reboot. Hence, it gets downloaded after every reboot. If you run the task twice without rebooting, you will see, that the second run yields no change.

TASK [checkmk.general.agent : Linux: Register Agent for TLS.] ******************
changed: [midevansible.company.lan]

This is a ansible.builtin.command task, which makes it non-trivial to make it idempotent. From the top of mind I am uncertain, if we can use the command output or not. This requires further investigation.

TASK [checkmk.general.agent : Fetch fresh monitoring data from host.] **********
changed: [midevansible.company.lan -> localhost]

This task actually triggers a re-scan of the host, which means, the "changed" state is technically right (which is the best kind of being right 😉)

TASK [checkmk.general.agent : Update monitored services and labels on host.] ***
changed: [midevansible.company.lan -> localhost]

This one might be valid as well. Unless something actually changes. But if you are certain this is not okay, it is probably an issue with the discovery module and not with the agent role. I would ask you double-check, if you can reproduce the issue with a dedicated task using the discovery module and if so, open a dedicated issue for the module.

RUNNING HANDLER [checkmk.general.agent : Activate Changes.] ********************
changed: [midevansible.company.lan -> localhost]

Are you sure there are no changes to activate? This one is the same as the last one. If the change detection does not work, it is a problem with the module, and we need a dedicated issue for the activation module.

from ansible-collection-checkmk.general.

peterge1998 avatar peterge1998 commented on September 27, 2024

Of course I get why the first 3 are showing up as change. But in my opinion it makes way more sense to use changed_when: false here, otherwise my play recap is filled up with irrelevant changes (like downloading to tmp or rescanning).

I do not find any way to mute the changes for a role execution. So I guess I have to live with those changed tasks :(

from ansible-collection-checkmk.general.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.