2.3.0p20
how do i fetch agent installer from checkmk server with ansible ?
I’ve tried to look at the ansible documentation for checkmk and google, if possible i’d like to get it without having to deploy the whole checkmk git repo
Lilian
2.3.0p20
how do i fetch agent installer from checkmk server with ansible ?
I’ve tried to look at the ansible documentation for checkmk and google, if possible i’d like to get it without having to deploy the whole checkmk git repo
Lilian
roles:
- checkmk.general.agent
and running this will download an agent ?
That’s what it says on the webpage and what it does in my enviroment.
It depends on your environment, you can do it in a simple way or you can experiment a bit and make more automation, for example if you have several instances of checkmk (new and old) you use several agents … Would you like to receive a full playbook, rolls and variables ![]()
A full simple playbook for fetching the agent would be nice, for when deploying new servers.
Depending how much extra it is, adding the host & registering for updates would be nice.
Kinda started to look at using the rest api instead but if this isn’t too much to ask for / make it too much bigger, those would be the nice to have parts atm
Automatic updates are working, tested also when they need a different version than originally installed, and installing with apt is something i have a lot of examples of in our repository already.
Really thankful for any help, have had to learn ansible from scratch with a monolithic repo(our own wrongly written one, not checkmk repo) and no one to teach me
![]()
What is missing from this answer?
The initial question was, how one could download the agent using Ansible.
The last post suggest, installing the agent and registering it would be nice as well.
All of the above - and more - can be done with the agent role.
So I am kinda puzzled: What is missing here?
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.