playbook.yaml.j2 492 B

12345678910111213141516
  1. ---
  2. - name: Manage Checkmk host
  3. hosts: localhost
  4. gather_facts: false
  5. tasks:
  6. - name: "Create or update host in Checkmk"
  7. checkmk.general.host:
  8. server_url: "{{ checkmk_protocol }}://{{ checkmk_server }}"
  9. site: {{ checkmk_site }}
  10. automation_user: {{ checkmk_user }}
  11. automation_secret: {{ checkmk_pass }}
  12. name: {{ host_name }}
  13. attributes:
  14. ipaddress: {{ host_ip }}
  15. folder: {{ host_folder }}
  16. state: "present"