commited current state (new functions, may not work by now)
This commit is contained in:
15
roles/checkmk-monitoring/tasks/create-host.yaml
Normal file
15
roles/checkmk-monitoring/tasks/create-host.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
- name: "Create new Host at CheckMK Server"
|
||||
checkmk.general.host:
|
||||
server_url: "{{ checkmk_server_url }}"
|
||||
site: "{{ checkmk_monitoring_site }}"
|
||||
automation_user: "{{ checkmk_automation_user }}"
|
||||
automation_secret: "{{ checkmk_automation_pass }}"
|
||||
name: "{{ checkmk_agent_host_name }}"
|
||||
folder: "{{ checkmk_host_folder }}"
|
||||
attributes:
|
||||
ipv6address: "{{ ansible_host }}"
|
||||
state: present
|
||||
delegate_to: localhost
|
||||
notify:
|
||||
- Activate Changes
|
||||
- Sign and bake pending agent jobs
|
||||
Reference in New Issue
Block a user