You've already forked ansible-role-checkmk-agent
Initial project
This commit is contained in:
28
tasks/Windows.yml
Normal file
28
tasks/Windows.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
- name: Ensure temp dir exists
|
||||
win_file:
|
||||
path: c:/temp/
|
||||
state: directory
|
||||
- name: Obtain information about a file
|
||||
win_stat:
|
||||
path: c:/temp/check-mk-agent.msi
|
||||
register: cmkmsi
|
||||
- name: Retrieve copy of agent
|
||||
win_get_url:
|
||||
url: '{{ cmk_msi_agent }}{{ cmk_auth }}'
|
||||
dest: c:/temp/check-mk-agent.msi
|
||||
changed_when: false
|
||||
when: not cmkmsi.stat.exists
|
||||
- name: Ensure agent is installed
|
||||
win_package:
|
||||
path: c:/temp/check-mk-agent.msi
|
||||
ignore_errors: true
|
||||
- name: Firewall rule to allow check_mk_agent on TCP port 6556
|
||||
win_firewall_rule:
|
||||
name: check_mk_agent
|
||||
enabled: true
|
||||
state: present
|
||||
localport: 6556
|
||||
action: allow
|
||||
direction: in
|
||||
protocol: tcp
|
||||
Reference in New Issue
Block a user