checkmk already provides the needed APIs to automate the basic configuration of your monitoring. With this project we want to create and share roles and modules of ansible to simplify your first steps with ansible in combination with checkmk.
We are currently working on our very own official
Ansible Collection.
That is a side project - just as this one - but we are confident, that you might
like it, so make sure to check it out!
At the beginning this project contains a simple playbook as an example, a hosts.ini and the needed roles to execute this playbook. Things to do for the first test run:
- In each role: adjust the defaults, if needed. At the moment you still need to set the checkmk version manually.
- In the host.ini: Fill it with your hosts and remove the examples
- In the playbook: Find the tags to run the roles you want
Execute your playbook with a bunch of testhosts:
ansible-playbook -i hosts.ini ansible-example.yml --tags all