zabbix role for windows
This commit is contained in:
parent
bd65a06983
commit
f9303ff352
22
production
22
production
@ -1,3 +1,25 @@
|
||||
[mist]
|
||||
mist.lan
|
||||
|
||||
[mist:vars]
|
||||
ansible_user=plantroon
|
||||
ansible_ssh_private_key_file=/srv/vapps/hass/mist-key
|
||||
ansible_connection=ssh
|
||||
ansible_shell_type=cmd
|
||||
ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
||||
ansible_become_method=runas
|
||||
|
||||
[lotus]
|
||||
lotus.lan
|
||||
|
||||
[lotus:vars]
|
||||
ansible_user=martahoralka
|
||||
ansible_ssh_private_key_file=/srv/vapps/hass/mist-key
|
||||
ansible_connection=ssh
|
||||
ansible_shell_type=cmd
|
||||
ansible_ssh_common_args=-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
|
||||
ansible_become_method=runas
|
||||
|
||||
[faiserver]
|
||||
10.91.1.2
|
||||
|
||||
|
10
roles/zabbixagent-win/tasks/main.yml
Normal file
10
roles/zabbixagent-win/tasks/main.yml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Save the result of 'whoami' in 'whoami_out'
|
||||
ansible.windows.win_command: whoami
|
||||
register: whoami_out
|
||||
|
||||
- name: install packages
|
||||
win_package:
|
||||
path: "https://cdn.zabbix.com/zabbix/binaries/stable/6.2/6.2.2/zabbix_agent2-6.2.2-windows-amd64-openssl.msi"
|
||||
state: present
|
||||
arguments: "SERVER=10.91.1.2"
|
4
zabbixagent.yml
Normal file
4
zabbixagent.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
- hosts: lotus
|
||||
roles:
|
||||
- zabbixagent-win
|
Loading…
Reference in New Issue
Block a user