We archived this project in favor of our very own official
Ansible Collection. We are confident, that it will
deliver just as much value, as this project, while being up-to-date
with the Ansible ecosystem.
See you on the other side!
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.
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