template.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. kind: ansible
  3. metadata:
  4. name: Manage Checkmk Host
  5. description: |-
  6. Ansible playbook to manage hosts in Checkmk monitoring. Uses the checkmk.general.host module to create or update host configuration.
  7. ## References
  8. - **Project**: https://github.com/Checkmk/ansible-collection-checkmk.general
  9. - **Documentation**: https://docs.checkmk.com/
  10. version: 2.4.0
  11. author: Christian Lempa
  12. date: "2025-11-11"
  13. tags: []
  14. icon:
  15. provider: selfh
  16. id: checkmk
  17. draft: false
  18. next_steps: ""
  19. schema: "1.0"
  20. spec:
  21. checkmk:
  22. title: Checkmk Configuration
  23. vars:
  24. checkmk_server:
  25. type: str
  26. description: Checkmk Server
  27. required: true
  28. checkmk_protocol:
  29. type: str
  30. description: Checkmk Server Protocol
  31. enum:
  32. - http
  33. - https
  34. default: https
  35. required: true
  36. checkmk_site:
  37. type: str
  38. description: Checkmk Site
  39. default: cmk
  40. required: true
  41. checkmk_user:
  42. type: str
  43. description: Checkmk Automation User
  44. required: true
  45. checkmk_pass:
  46. type: str
  47. description: Checkmk Automation User Password
  48. required: true
  49. sensitive: true
  50. host:
  51. title: Host Configuration
  52. vars:
  53. host_name:
  54. type: str
  55. description: Hostname to add to Checkmk
  56. required: true
  57. host_ip:
  58. type: str
  59. description: IP address of the host
  60. required: true
  61. host_folder:
  62. type: str
  63. description: Folder path in Checkmk
  64. default: /
  65. required: true