mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-12 00:03:17 +02:00
34 lines
730 B
YAML
34 lines
730 B
YAML
---
|
|
- name: Remove previous zabbix packages
|
|
yum:
|
|
name:
|
|
- zabbix
|
|
state: absent
|
|
tags: zabbix
|
|
|
|
- name: Install Zabbix Proxy
|
|
yum:
|
|
name:
|
|
- zabbix-proxy-sqlite3
|
|
- zabbix-get
|
|
- zabbix-java-gateway
|
|
- sqlite
|
|
- perl-JSON
|
|
- perl-IO-Socket-SSL
|
|
- perl-libwww-perl
|
|
- perl-URI
|
|
- perl-DateTime-Format-ISO8601
|
|
- perl-Getopt-Long
|
|
- perl-Pod-Usage
|
|
state: "{{ zabbix_proxy_update | ternary('latest', 'present') }}"
|
|
notify: restart zabbix-proxy
|
|
register: zabbix_proxy_rpm
|
|
tags: zabbix
|
|
|
|
- name: Install backup hooks
|
|
template: src={{ item }}-backup.j2 dest=/etc/backup/{{ item }}.d/zabbix_proxy.sh mode=755
|
|
loop:
|
|
- pre
|
|
- post
|
|
tags: zabbix
|