15 lines
514 B
YAML
15 lines
514 B
YAML
- 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 |