zabbix role for windows

This commit is contained in:
Jakub Filo 2023-04-15 18:42:51 +00:00
parent bd65a06983
commit f9303ff352
3 changed files with 36 additions and 0 deletions

View File

@ -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

View 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
View File

@ -0,0 +1,4 @@
---
- hosts: lotus
roles:
- zabbixagent-win