You've already forked ansible-role-checkmk-agent
fix: No longer delegate to localhost 🐛
This caused some issues when used in a delegated fashion.
This commit is contained in:
11
tasks/host-management/Windows/check.yml
Normal file
11
tasks/host-management/Windows/check.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Retrieve checkmk version
|
||||
win_uri:
|
||||
method: GET
|
||||
headers:
|
||||
Authorization: Bearer {{ cmk_username }} {{ cmk_secret }}
|
||||
Accept: application/json
|
||||
url: '{{ cmk_omd_protocol }}://{{ cmk_omd_host }}/{{ cmk_omd_site }}/check_mk/api/1.0/version'
|
||||
return_content: true
|
||||
register: cmk_output
|
||||
Reference in New Issue
Block a user