Initial Commit

This commit is contained in:
2020-10-13 16:33:32 +13:00
commit d646952ef5
23 changed files with 429 additions and 0 deletions

26
tasks/Windows.yml Normal file
View File

@@ -0,0 +1,26 @@
---
- name: Ensure temp dir exists
win_file:
path: "c:/temp/"
state: directory
- name: Retrieve copy of agent
win_get_url:
url: "{{ cmk_msi_agent }}{{ cmk_auth }}"
dest: "c:/temp/check-mk-agent.msi"
changed_when: false
- name: Ensure agent is installed
win_package:
path: "c:/temp/check-mk-agent.msi"
ignore_errors: yes
- name: Firewall rule to allow check_mk_agent on TCP port 6556
win_firewall_rule:
name: check_mk_agent
enabled: yes
state: present
localport: 6556
action: allow
direction: in
protocol: tcp