first upload
This commit is contained in:
parent
9f549c4076
commit
16ab5250a1
6
tasks/configure-zabbix_agent.yml
Normal file
6
tasks/configure-zabbix_agent.yml
Normal 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
|
17
tasks/install-zabbix_agent.yml
Normal file
17
tasks/install-zabbix_agent.yml
Normal 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"
|
||||
|
6
tasks/service-zabbix_agent.yml
Normal file
6
tasks/service-zabbix_agent.yml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Zabbix Agent engedélyezése és elindítása
|
||||
service:
|
||||
name: zabbix-agent
|
||||
enabled: yes
|
||||
state: started
|
12
templates/zabbix_agentd.conf.j2
Normal file
12
templates/zabbix_agentd.conf.j2
Normal 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}}
|
Loading…
Reference in New Issue
Block a user