Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
667 B

---
# Packages from fws provides a "zabbix" package.
# But upgrading this one with the packages from Zabbix repo will
# pull all the servers and proxies packages, which we do not want
- name: Remove old zabbix package
yum:
name:
- zabbix
state: absent
tags: zabbix
- name: Install Zabbix Agent and additional scripts
yum:
name:
- zabbix-agent
- zabbix-agent-addons
- openssl
- "{{ ansible_distribution_major_version is version('8', '<') | ternary('policycoreutils-python','python3-policycoreutils') }}"
state: "{{ zabbix_agent_update | ternary('latest','present') }}"
notify: restart zabbix-agent
tags: zabbix