1
1

first upload

This commit is contained in:
Márkus Sándor 2023-07-01 12:50:13 +02:00
parent 9f549c4076
commit 16ab5250a1
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
- name: Zabbix Agent konfigurálása
diff: yes
template: src=~/git/ansible_vagrant/templates/zabbix_agentd.conf.j2 dest={{ ZBXDIR }}/zabbix_agentd.conf backup=yes
notify:
- restart zabbix-agent

View File

@ -0,0 +1,17 @@
---
- name: Zabbix Agent telepítése [Red Hat family]
yum:
name: zabbix-agent
state: latest
update_cache: yes
when:
- ansible_os_family == "RedHat"
- name: Zabbix Agent telepítése [Debian family]
apt:
name: zabbix-agent
state: latest
update_cache: yes
when:
- ansible_os_family == "Debian"

View File

@ -0,0 +1,6 @@
---
- name: Zabbix Agent engedélyezése és elindítása
service:
name: zabbix-agent
enabled: yes
state: started

View File

@ -0,0 +1,12 @@
################################################################################
{{ ansible_managed | comment }}
################################################################################
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/{{ ZBXLOGDIR }}/zabbix_agentd.log
LogFileSize={{ ZBXLOGFILESIZE }}
Server={{ ZBXSERVER }}
ListenPort={{ ZBXAGENTPORT }}
ListenIP={{ ZBXLISTENIP }}
ServerActive=127.0.0.1
Hostname={{ inventory_hostname_short}}